Re: [csswg-drafts] [css-images] Behaviour of SVG degenerate aspect-ratios (#6286)

So reality doesn't quite match what I had remembered here:
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=14520

For the 3rd line:
Blink/Gecko/Servo all match the 2nd line - that "0" is a valid natural-size and should be respected.
Safari is not treating it as a valid natural-size, and instead is falling back to the default object-size (this is incorrect IMO).

For the 1st & 2nd line:
Blink/Servo (ignoring Servo's bug), are implementing the 1st resolution, coercing the block-size even if the natural-size in the other dimension is zero (Servo is only doing this for "height", but perhaps they don't support writing-modes yet).
Gecko isn't doing either resolution, and not coercing the natural-size.
WebKit is implementing 2nd resolution (but has bugs with a natural-size of "0x0" and stretching to parent unnecessarily).
 

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


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

Received on Wednesday, 11 February 2026 18:01:28 UTC