Closed Bug 1823257 Opened 1 year ago Closed 11 months ago

WPT css/css-masking/mask-image/mask-origin-2.html fails

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED MOVED

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

WPT https://wpt.fyi/results/css/css-masking/mask-image/mask-origin-2.html fails, with the failure screenshot showing that the colorful box is mis-positioned by a few pixels in each axis.

Based on the failure screenshot, it looks like we're masking the border-box instead of the margin box, or something along those lines. (The testcase has margin: 1px 2px 3px 4px; and mask-origin: margin-box;, and at least for the first section, the purple square is visually mispositioned by 1px in the y-axis and off by 4px in the x-axis.)

The severity field is not set for this bug.
:alaskanemily, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emcdonough)
Severity: -- → S3
Flags: needinfo?(emcdonough)

(In reply to Daniel Holbert [:dholbert] from comment #0)

Based on the failure screenshot, it looks like we're masking the border-box instead of the margin box, or something along those lines. (The testcase has [...] mask-origin: margin-box

I guess we don't support mask-origin:margin-box, actually. It looks like that value was removed from the spec:
https://drafts.fxtf.org/css-masking-1/#changes

The following changes were made since the 26 August 2014 Candidate Recommendation.
Remove margin-box as possible value from mask-origin and mask-clip.

So the test is wrong and needs to be fixed.

https://github.com/web-platform-tests/wpt/issues/41166 I have opened an issue on the WPT repo to suggest removing this test.

Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → MOVED
You need to log in before you can comment on or make changes to this bug.