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

Firefox supports vw, vh, vmin, vmax on SVG elements. See https://searchfox.org/mozilla-central/source/dom/svg/SVGLengthUnits.h for all supported non-CSS units.

We only support CSS things like calc on mapped units so things like the filter element's width attribute would not support calc.

CSS mapped properties e.g. width on rect elements support a wider range of units including CSS keywords - everything HTML in Firefox supports.

So is Firefox consistent with Chrome currently e.g. vw, vh etc on SVG elements?

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


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

Received on Wednesday, 30 July 2025 10:05:48 UTC