Closed Bug 2017307 Opened 9 months ago Closed 8 months ago

Implement CSS revert-rule keyword (was: New wpt failures in /css/ [css-cascade/revert-rule-basic.html, css-cascade/revert-rule-layer.html, css-env/env-revert-rule.html, and 5 others])

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: wpt-sync, Assigned: emilio)

References

(Blocks 3 open bugs)

Details

(Keywords: dev-doc-complete, Whiteboard: [wpt])

Attachments

(1 external file)

Syncing wpt PR 57827 found new untriaged test failures in CI

Tests Affected

New Tests That Don't Pass

  • /css/css-cascade/revert-rule-basic.html [wpt.fyi]
    • The revert-rule keyword rolls back to the previous rule: FAIL (Chrome: PASS, Safari: FAIL)
    • Cascade order determines the previous rule, not order of appearance: FAIL (Chrome: PASS, Safari: FAIL)
    • Reverting from style attribute reverts to regular rules: FAIL (Chrome: PASS, Safari: FAIL)
    • A chain of revert-rule works: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-cascade/revert-rule-layer.html [wpt.fyi]
    • The revert-rule keyword can cross layers: FAIL (Chrome: PASS, Safari: FAIL)
    • The revert-rule does not unconditionally cross layers: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-env/env-revert-rule.html [wpt.fyi]
    • The revert-rule works in an env() fallback: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-nesting/nesting-revert-rule.html [wpt.fyi]
    • The revert-rule keyword can revert to a nested rule: FAIL (Chrome: PASS, Safari: FAIL)
    • The revert-rule keyword can revert to a CSSNestedDeclarationsRule: FAIL (Chrome: PASS, Safari: FAIL)
    • The revert-rule keyword can revert from a CSSNestedDeclarationsRule: FAIL (Chrome: PASS, Safari: FAIL)
    • The revert-rule keyword can revert to scoped declarations: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-values/attr-revert-rule.html [wpt.fyi]
    • The revert-rule works in an attr() fallback: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-values/if-function-revert-rule.html [wpt.fyi]
    • The revert-rule works as a branch in if(): FAIL (Chrome: PASS, Safari: FAIL)
    • The revert-rule works as a branch in if(), earlier return: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-variables/revert-rule-in-fallback.html [wpt.fyi]
    • var(--unknown, revert-rule) in custom property: FAIL (Chrome: PASS, Safari: FAIL)
    • var(--unknown, revert-rule) in shorthand: FAIL (Chrome: PASS, Safari: FAIL)
    • var(--unknown, revert-rule) in shorthand observed via longhand: FAIL (Chrome: PASS, Safari: FAIL)
    • var(--unknown, revert-rule) in longhand: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-variables/revert-rule-to-var.html [wpt.fyi]
    • Using revert-rule to revert to a value containing var(): FAIL (Chrome: PASS, Safari: FAIL)

CI Results

Gecko CI (Treeherder)
GitHub PR Head

Notes

These updates will be on mozilla-central once bug 2017259 lands.

Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.

This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/

If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.

Severity: -- → S4
Depends on: css-cascade-5

As per https://drafts.csswg.org/css-cascade-5/#revert-rule-keyword

The remaining test failure is about
https://github.com/w3c/csswg-drafts/issues/9131 and affects all other
revert* keywords, so I don't think it's worth blocking on that.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Summary: New wpt failures in /css/ [css-cascade/revert-rule-basic.html, css-cascade/revert-rule-layer.html, css-env/env-revert-rule.html, and 5 others] → Implement CSS revert-rule keyword (was: New wpt failures in /css/ [css-cascade/revert-rule-basic.html, css-cascade/revert-rule-layer.html, css-env/env-revert-rule.html, and 5 others])
Blocks: 2020814
Keywords: dev-doc-needed
Severity: S4 → S3
Priority: -- → P3
Blocks: 2020819
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/93a63205c669 https://hg.mozilla.org/integration/autoland/rev/0de23f0338f1 Implement CSS revert-rule. r=firefox-style-system-reviewers,dshin,devtools-reviewers,nchevobbe
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/628e055e690f https://hg.mozilla.org/integration/autoland/rev/185369e1423e Revert "Bug 2017307 - Implement CSS revert-rule. r=firefox-style-system-reviewers,dshin,devtools-reviewers,nchevobbe" for causing mochitest failures @ test_bug877690.html
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f20ae1194af0 https://hg.mozilla.org/integration/autoland/rev/388f8127161d Implement CSS revert-rule. r=firefox-style-system-reviewers,dshin,devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Type: defect → enhancement
No longer depends on: css-cascade-5
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: