calc() as SVG coordinate does not re-render when parent width changes – CSS
The Issue In the following HTML code, I'm using the css calc() function to make an SVG line a percentage of the width of the parent container, minus a constant 20px: <button onclick="myOnClick()">Click me</button> <div id="my-div"> <svg xmlns="http://www.w3.org/2000/svg"> <line x1="0px"…