Closed Bug 1948992 Opened 1 month ago Closed 22 days ago

[wpt-sync] Sync PR 50776 - [functions] Validate dashed-functions parse-time

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 50776 into mozilla-central (this bug is closed when the sync is complete).

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

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

[functions] Validate dashed-functions parse-time

We currently accept any token sequence in the argument list
of a dashed function, but really it should be \<declaration-value>#.
The \<declaration-value> production does impose a few restrictions
on what is allowed, e.g. top-level semicolon tokens.

Bug: 325504770, 390205875
Change-Id: I5766a4edc58c1caf448097c4270bcfa2f210b4f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6275933
Commit-Queue: Anders Hartvoll Ruud \<andruud@chromium.org>
Reviewed-by: Steinar H Gunderson \<sesse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1421440}

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 27 subtests

Status Summary

Firefox

OK : 1
PASS: 17
FAIL: 10

Chrome

OK : 1
PASS: 15
FAIL: 12

Safari

OK : 1
PASS: 17
FAIL: 10

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-mixins/dashed-function-parsing.html [wpt.fyi]
    • e.style['top'] = "--func()" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(auto)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(100px)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(#fff)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(auto, 100px, #fff)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(auto ,100px ,#fff)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(auto , 100px , #fff)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(auto,100px,#fff)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func("thing")" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['top'] = "--func(--bar(), --baz(--fez()))" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2cf624c300c4 [wpt PR 50776] - [functions] Validate dashed-functions parse-time, a=testonly https://hg.mozilla.org/integration/autoland/rev/7490c763ef48 [wpt PR 50776] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.