WPT css/css-masking/clip-path/clip-path-viewBox-1b.html fails in Firefox (after adjustment in interop issue #509)
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: dholbert, Assigned: boris)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
This interop issue is changing a clip-path test to match the spec, and it looks like our behavior disagrees with the spec, so we'll start failing that test when the change is merged:
https://github.com/web-platform-tests/interop/issues/509
Test:
https://wpt.fyi/results/css/css-masking/clip-path/clip-path-viewBox-1b.html
Filing this bug on fixing our implementation to match the spec and the updated expectations.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 1•1 year ago
|
||
shot-in-the-dark -- we might want to use 0,0
for our x and y value here:
https://searchfox.org/mozilla-central/rev/630d2c45fc127a44756e3cca8cef51c35654a4b4/layout/base/nsLayoutUtils.cpp#9594-9595
WebKit's is our "reference" for the new behavior here; I think they match the spec, as discussed in that interop github issue. (Chromium doesn't seem to do any clipping at all for me right now, but I imagine that's because they've got a fix of some sort that's in-flight.)
Assignee | ||
Comment 2•1 year ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #1)
shot-in-the-dark -- we might want to use
0,0
for our x and y value here:
https://searchfox.org/mozilla-central/rev/630d2c45fc127a44756e3cca8cef51c35654a4b4/layout/base/nsLayoutUtils.cpp#9594-9595
I pushed to try to see if there are any other issues: https://treeherder.mozilla.org/jobs?repo=try&revision=9a3069f20393d963fee361c8778fae32e72c28b8
Assignee | ||
Comment 3•1 year ago
|
||
OK. I guess we may also have to update:
Both use view-box
and the tests have non-zero x
and y
in viewBox
.
Assignee | ||
Comment 4•1 year ago
|
||
Per https://github.com/web-platform-tests/interop/issues/509, we update
the coordinate to match the spec, i.e. When the viewBox includes non-zero min-x
or min-y offsets, this origin box does not actually correspond to the visible
region rectangle defined by the viewBox.
https://drafts.csswg.org/css-box-3/#valdef-box-view-box
Also tweak mask-clip-2.html and mask-origin-3.html to make sure we use
the proper view-box.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
Description
•