- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 15 Oct 2025 16:52:44 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-images] Behaviour of SVG degenerate aspect-ratios`, and agreed to the following: * `RESOLVED: for degenerate ratios, take the viewBox ratio with the positive dimension. If both are negative or zero, then drop the block-size` <details><summary>The full IRC log of that discussion</summary> <emilio> fantasai: there was a discussion about degenerate ratios derived from svg, when if degenerate we fall back to the viewBox aspect ratio<br> <emilio> ... but do we discard the width or the height<br> <emilio> ... mozilla discards the height<br> <emilio> ... but I think it makes sense to discard the zero dimension<br> <emilio> ... and if both are zero probably discard the height?<br> <emilio> astearns: so this would amend the previous resolution<br> <emilio> fantasai: yeah<br> <emilio> ... let's say you have <svg width height viewBox><br> <emilio> ... but viewBox A/R is 2/1 but width/height aspect ratio is different<br> <emilio> ... so if width / height ratio is degenerate we resolved to use viewBox<br> <emilio> ... but we need that plus a size to apply the viewBox ratio on<br> <emilio> ... so gecko always drops the height<br> <emilio> ... but if we have a 0 dimension and a non-zero dimension it seems keeping the non-zero dimension would make more sense<br> <emilio> astearns: so proposal would be to amend the previous resolution to take the non zero dimension<br> <emilio> astearns: iank_ commented that negative dimensions and zero are different<br> <ydaniv> +1<br> <emilio> fantasai: probably we floor negative dimensions at 0<br> <flackr> Sounds reasonable<br> <emilio> emilio: I agree, if compat allows this makes more sense<br> <Kurt> width = "<length>"<br> <Kurt> The width of the rectangle.<br> <Kurt> A negative value is an error<br> <Kurt> https://www.w3.org/TR/SVG11/shapes.html#RectElement<br> <kbabbitt> +1<br> <emilio> PROPOSAL: for degenerate ratios, take the viewBox ratio with the positive dimension. If both are negative or zero, then drop the block-size<br> <fantasai> +1<br> <emilio> RESOLVED: for degenerate ratios, take the viewBox ratio with the positive dimension. If both are negative or zero, then drop the block-size<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6286#issuecomment-3407407106 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 15 October 2025 16:52:45 UTC