Re: [svgwg] Should `width` and `height` apply to nested `svg` elements as CSS properties (#1057)

> All browsers render the same for now The two SVG you proposed above renders differently.
> 
> The original CSS Issue: [w3c/csswg-drafts#12376](https://github.com/w3c/csswg-drafts/issues/12376)
> 
> The [decision by the CSS WG](https://github.com/w3c/csswg-drafts/issues/12376#issuecomment-3210998345) was:
> 
> > RESOLVED: content dependent units used in width and height for inner SVG elements resolve to SVG's definition of auto
> 
> This change was made to the spec. https://github.com/w3c/svgwg/pull/999/changes

This was the resolution in general for **all** inner SVG elements (like `rect`, `foreignObject`, `svg` etc).
In this issue, we are specifically targeting nested `svg` element (SVGSVGElement) which has caused regression to not apply `width` and `height` CSS properties, which I believe can be considered independent from the CSS resolution that we obtained earlier.

-- 
GitHub Notification of comment by goldenboy777
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1057#issuecomment-3845909517 using your GitHub account


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

Received on Wednesday, 4 February 2026 07:59:58 UTC