Closed Bug 1945780 Opened 20 days ago Closed 17 days ago

[wpt-sync] Sync PR 50484 - [functions] Substitute var() via attr() locally

Categories

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

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anders Hartvoll Ruud <andruud@chromium.org> wrote:

[functions] Substitute var() via attr() locally

In other words, when substituting an attribute like "var(--x)",
the referenced "--x" must respect the local context: it can either
refer to a local variable, and argument, or a custom property.

https://drafts.csswg.org/css-mixins-1/#locally-substitute-a-var

Bug: 325504770
Change-Id: I68a1d4cecc173ebe17692087edaa1014eab27466
Fixed: 391570175
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6190814
Reviewed-by: Munira Tursunova \<moonira@google.com>
Commit-Queue: Anders Hartvoll Ruud \<andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1415486}

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

CI Results

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

Total 1 tests and 6 subtests

Status Summary

Firefox

OK : 1
FAIL: 6

Chrome

OK : 1
FAIL: 6

Safari

OK : 1
FAIL: 6

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-mixins/local-attr-substitution.html [wpt.fyi]
    • var() in attribute value substitutes locally: FAIL (Chrome: FAIL, Safari: FAIL)
    • var() in attribute value substitutes locally, argument: FAIL (Chrome: FAIL, Safari: FAIL)
    • var() in attribute value substitutes locally, typed: FAIL (Chrome: FAIL, Safari: FAIL)
    • attr() fallback substitutes locally: FAIL (Chrome: FAIL, Safari: FAIL)
    • attr() cycle through local: FAIL (Chrome: FAIL, Safari: FAIL)
    • attr() cycle through fallback in local: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3836cc7f98fe [wpt PR 50484] - [functions] Substitute var() via attr() locally, a=testonly https://hg.mozilla.org/integration/autoland/rev/a6ad59bd7a85 [wpt PR 50484] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.