[css-images] Behaviour of SVG degenerate aspect-ratios
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: mozilla-apprentice, Assigned: boris)
References
Details
Attachments
(2 files, 1 obsolete file)
A resolution was made for csswg-drafts/#6286.
[css-images] Behaviour of SVG degenerate aspect-ratios
- RESOLVED: degenerate aspect ratios derived from SVG width/height attributes fall back to viewbox aspect ratio (whether due to negative values or zero values)
Comment 1•3 years ago
•
|
||
This probably requires us to adjust SVGOuterSVGFrame::GetIntrinsicRatio().
(note, iank [from the Chromium team] mentioned there are a few grid WPT tests that depend on our existing behavior, which will need an adjustment [and I think he'll be changing them]. We might continue to pass them, since he'll probably be changing them to remove the viewBox, which is the thing that we weren't falling back to & that the spec now says we should fall back to.)
Comment 2•3 years ago
|
||
boris, maybe you'd be interested in taking this, given that it's in the neighborhood of the aspect-ratio
work you've been doing?
(This isn't strictly about the aspect-ratio
property, but it's a relatively self-contained aspect ratio related change.)
Comment hidden (obsolete) |
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Both cases should be 100x100 green squares.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
Based on github.com/w3c/csswg-drafts/issues/6286, we fall back to the
viewport rect if
- width/height is a degenerate ratio, or
- width or height is a negative number.
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bed7b4b9ff74 Handle degenerate ratio and negative size attributes for intrinsic size calculation of SVG outer frames. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29487 for changes under testing/web-platform/tests
Comment 8•3 years ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Description
•