Closed Bug 2068599 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62375 - [css-mixins] Require values in @private

Categories

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

task

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

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

[css-mixins] Require values in @private

The @private rule uses a declaration list, so private custom property
declarations must include a colon and value. In CL:8228248, we
previously accepted bare names and typed names without values, however
the spec now specifies that this is not correct [0].

Reject these invalid declarations while retaining valid declarations in
the same block. Updated unit tests and WPT.

[0] https://github.com/w3c/csswg-drafts/commit/27fd597de31a8c43234f99f58983e4af3d1f9282

Bug: 542651959
Low-Coverage-Reason: COVERAGE_UNDERREPORTED
Change-Id: I3fa65115e9bce9a3d51297b67563aa105d6d39b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8337617
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@{#1690357}

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 2 tests and 16 subtests

Status Summary

Firefox

OK : 1[GitHub] 2[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: 16[GitHub] 17[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
PASS: 13
FAIL: 3

Safari

OK : 1
FAIL: 16

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 (Chrome: PASS, Safari: FAIL)
    • Untyped variable with a default: FAIL (Chrome: PASS, Safari: FAIL)
    • Multiple variables: FAIL (Chrome: PASS, Safari: FAIL)
    • Repeated variable name: FAIL (Chrome: PASS, Safari: FAIL)
    • Trailing whitespace is omitted: FAIL (Chrome: FAIL, Safari: FAIL)
    • Typed variable with a default: FAIL (Chrome: PASS, Safari: FAIL)
    • Multi-component type: FAIL (Chrome: PASS, Safari: FAIL)
    • Single-component type() is unwrapped: FAIL (Chrome: PASS, Safari: FAIL)
    • Structured default value: FAIL (Chrome: PASS, Safari: FAIL)
    • Escaped variable name: FAIL (Chrome: PASS, Safari: FAIL)
    • Escaped custom-ident type: FAIL (Chrome: PASS, Safari: FAIL)
    • An all-invalid block serializes as an empty rule: FAIL (Chrome: PASS, Safari: FAIL)
    • Invalid declarations are omitted: FAIL (Chrome: PASS, Safari: FAIL)
    • A variable without a value is omitted: FAIL (Chrome: FAIL, Safari: FAIL)
    • A typed variable without a value is omitted: FAIL (Chrome: FAIL, Safari: FAIL)
    • !important declaration is omitted: FAIL (Chrome: PASS, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.