[wpt-sync] Sync PR 64570 - [css-mixins] Derive CSSPrivateRule from CSSStyleRule (2.5/N)
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| 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}
| Assignee | ||
Updated•19 days ago
|
| Assignee | ||
Comment 1•19 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119360
| Assignee | ||
Comment 2•18 days ago
|
||
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
- @private can be inserted into a style rule:
- /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
- Empty @private rule:
- /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)
- CSSPrivateRule inherits CSSStyleRule:
- /css/css-mixins/private/private-shared-stylesheet.tentative.html [wpt.fyi]
- Shared stylesheets and detached rules preserve authored private names:
FAIL
- Shared stylesheets and detached rules preserve authored private names:
Comment 4•14 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7c81aa29abbf
https://hg.mozilla.org/mozilla-central/rev/2acc5404cc8e
Description
•