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

> For the viewport-percentage lengths, ...

These have shipped in Chromium (at least) for a number of years now, resolving to the same value as in other contexts. In not convinced trying to redefine them for SVG contexts will be very useful (if possible). This has been attempted before (WebVTT) with quite lackluster turnout.

> For any sizing that depends on content in CSS, treating it as 100% in SVG seems reasonable to me, since it follows the precedent set by auto.

`auto` has different definitions for different elements[*], so a blanket `100%` doesn't sound useful, but aligning with the existing definitions for `auto` might be.

[*] For example: for `<image>` it resolves based on the natural dimensions of the referenced image.

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


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

Received on Wednesday, 2 July 2025 11:28:46 UTC