Re: [svgwg] Defining Viewport-percentage lengths for SVG Elements in CSS sizing properties (#1019)

@goldenboy777 The ICB incorporates inner SVG elements correctly (if they're in HTML documents), because there's one ICB per document.

What I'm not sure it deals with is SVG documents, spec-wise... If you squint enough, those have an ICB just as well, but... In Gecko at least we [do create](https://searchfox.org/firefox-main/rev/dbe1fb5b33518694e8e4a230a0898c8064575828/layout/base/nsCSSFrameConstructor.cpp#2699-2704) the relevant boxes (`ViewportFrame` etc) regardless of the document type / root element namespace.

I'm not sure CSS2 or SVG specifies this tho... @tabatkins @fantasai are you well-versed enough with the SVG layout model to know one way or the other, spec wise?

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


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

Received on Monday, 6 October 2025 10:55:25 UTC