Closed Bug 1834641 Opened 1 year ago Closed 9 months ago

WPT test css/css-masking/parsing/mask-valid.sub.html fails in Firefox due to serialization issues

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: dholbert, Assigned: boris)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We fail this WPT test:
http://wpt.live/css/css-masking/parsing/mask-valid.sub.html

It's testing the mask shorthand property.

Our subtest failures break down into a few different categories:
(1) A whole bunch of failures where we seem to be unnecessarily serializing mask-image:none as part of the specified style. e.g. here:

data:text/html,<body style="mask: repeat-y"><script>alert(document.body.style.mask)</script>

(2) A failure where the test is expecting mask:margin-box to be accepted but we reject it, since that's a value that was removed from the spec per bug 1823257 comment 2. (This part is a test bug.)

(3) Some cases where we serialize mask-position with more values than the test is expecting. (This one is related to but possibly distinct from bug 1823479.)

Severity: -- → S3

We are likewise failing https://wpt.fyi/results/css/css-backgrounds/parsing/background-valid.html. Should we file a new bug for that? Safari 17 should have fixes for both of these, as implemented in this commit

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

(2) A failure where the test is expecting mask:margin-box to be accepted but we reject it, since that's a value that was removed from the spec per bug 1823257 comment 2. (This part is a test bug.)

This is being addressed in https://github.com/web-platform-tests/interop/issues/387 FWIW.

  1. We should omit mask-image if it is the initial value and there are
    any other properties which are not initial values.
  2. Tweak the order of <masking-mode>, which should be the last one per spec.
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Pushed by bchiou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/081d116d10f8
Fix the serialization of mask shorthand property. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42181 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Upstream PR merged by moz-wptsync-bot

:boris, we seem to still be failing some tests here (or at least I still see them failing on the latest MacOS nightly on http://wpt.live/css/css-masking/parsing/mask-valid.sub.html). We're also failing some tests related to initial values (https://wpt.fyi/results/css/css-masking/inheritance.sub.html).. shall we reopen this bug, or are the failures related to https://bugzilla.mozilla.org/show_bug.cgi?id=877294?

Flags: needinfo?(boris.chiou)

(In reply to Thomas Wisniewski [:twisniewski] from comment #8)

:boris, we seem to still be failing some tests here (or at least I still see them failing on the latest MacOS nightly on http://wpt.live/css/css-masking/parsing/mask-valid.sub.html). We're also failing some tests related to initial values (https://wpt.fyi/results/css/css-masking/inheritance.sub.html).

I suspect http://wpt.live/css/css-masking/parsing/mask-valid.sub.html is a little bit out-of-date. I fixed this bug based on the wpt.fyi: https://wpt.fyi/results/css/css-masking/parsing/mask-valid.sub.html?label=experimental&label=master&aligned. All the current failures are related mask-border-* properties.

or are the failures related to https://bugzilla.mozilla.org/show_bug.cgi?id=877294?

Yes. Per wpt.fyi, the current failures are related https://bugzilla.mozilla.org/show_bug.cgi?id=877294, i.e. mask-border-* related properties.

I'd prefer not to reopen this bug. Just link these failures to https://bugzilla.mozilla.org/show_bug.cgi?id=877294.

Flags: needinfo?(boris.chiou)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: