Closed Bug 2092449 Opened 19 days ago Closed 14 days ago

[wpt-sync] Sync PR 64570 - [css-mixins] Derive CSSPrivateRule from CSSStyleRule (2.5/N)

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64570 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64570
Details from upstream follow.

Stephanie Zhang <stephanie.zhang@microsoft.com> wrote:

[css-mixins] Derive CSSPrivateRule from CSSStyleRule (2.5/N)

CSSPrivateRule was introduced as a CSSRule subclass in
https://crrev.com/c/8222046. This CL instead derives it from
CSSStyleRule, following the CSSOM proposal[0].

Since @private has no selector, selectorText returns an empty string and
assigning to it has no effect. The inherited style and styleMap APIs
expose and mutate declarations in the @private block, translating
hygienic names through the stylesheet registry introduced by
https://crrev.com/c/8508326.

[0] https://github.com/w3c/csswg-drafts/issues/14427

Low-Coverage-Reason: COVERAGE_UNDERREPORTED
Bug: 542651959
Change-Id: I7f80b533e39528eacf9dd896018f6f54b56019cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8415090
Commit-Queue: Stephanie Zhang \<stephanie.zhang@microsoft.com>
Auto-Submit: Stephanie Zhang \<stephanie.zhang@microsoft.com>
Reviewed-by: Kevin Babbitt \<kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1733341}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 4[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3
FAIL: 10[GitHub] 28[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
FAIL: 10

Safari

OK : 1
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-mixins/private/private-cssom-insert-rule.tentative.html [wpt.fyi]
    • @private can be inserted into a style rule: FAIL
  • /css/css-mixins/private/private-cssom-serialization.tentative.html [wpt.fyi]
    • Empty @private rule: FAIL
    • Untyped variable with a default: FAIL
    • Multiple variables: FAIL
    • Repeated variable name: FAIL
    • Trailing whitespace is omitted: FAIL
    • Typed variable with a default: FAIL
    • Multi-component type: FAIL
    • Single-component type() is unwrapped: FAIL
    • Structured default value: FAIL
    • Escaped variable name: FAIL
    • Escaped custom-ident type: FAIL
    • An all-invalid block serializes as an empty rule: FAIL
    • Invalid declarations are omitted: FAIL
    • A variable without a value is omitted: FAIL
    • A typed variable without a value is omitted: FAIL
    • !important declaration is omitted: FAIL
  • /css/css-mixins/private/private-cssom-style-api.tentative.html [wpt.fyi]
    • CSSPrivateRule inherits CSSStyleRule: FAIL (Chrome: FAIL, Safari: FAIL)
    • CSSPrivateRule supports inherited rule-list mutation: FAIL (Chrome: FAIL, Safari: FAIL)
    • selectorText is empty and ignores assignment: FAIL (Chrome: FAIL, Safari: FAIL)
    • style exposes and mutates private declarations: FAIL (Chrome: FAIL, Safari: FAIL)
    • style serializes private declarations with inline types: FAIL (Chrome: FAIL, Safari: FAIL)
    • style.cssText uses private declaration parsing: FAIL (Chrome: FAIL, Safari: FAIL)
    • individual style setters preserve private declaration restrictions: FAIL (Chrome: FAIL, Safari: FAIL)
    • style.cssText filters non-custom declarations: FAIL (Chrome: FAIL, Safari: FAIL)
    • styleMap exposes and mutates private declarations: FAIL (Chrome: FAIL, Safari: FAIL)
    • style mutations update detached private rules: FAIL (Chrome: FAIL, Safari: FAIL)
  • /css/css-mixins/private/private-shared-stylesheet.tentative.html [wpt.fyi]
    • Shared stylesheets and detached rules preserve authored private names: FAIL
Status: NEW → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.