Re: [csswg-drafts] [css-sizing-3][css-values-4] Define `width` and `height` CSS values for SVG Elements in a mapping (#12376)

@fsoder there is a specification which defines the values of viewport units like `vw`, `vh`
https://www.w3.org/TR/css-values-3/#viewport-relative-lengths

for example: `vw unit`: Equal to 1% of the width of the initial containing block.

But in case of SVG, the definition of initial containing block is a little ambiguous here as inner SVG elements don't follow CSS box model.
So, with this definition for SVG elements should the containing block be nearest `svg` element which creates the viewport, the further ancestral SVG viewport, or should it be something else altogether??

Any thoughts on this


-- 
GitHub Notification of comment by goldenboy777
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12376#issuecomment-3051929174 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 July 2025 09:47:06 UTC