Closed Bug 1526448 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 15162 - Don't skip invalid functions when looking for var references.

Categories

(Core :: DOM: CSS Object Model, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Emilio Cobos Álvarez <emilio@chromium.org> wrote:

Don't skip invalid functions when looking for var references.

This matches the spec, WebKit and Firefox.

From https://drafts.csswg.org/css-variables/#using-variables:

If a property contains one or more var() functions, and those functions are
syntactically valid, the entire property’s grammar must be assumed to be
valid at parse time. It is only syntax-checked at computed-value time, after
var() functions have been substituted.

Bug: 921152
Change-Id: Ie46268ffae4e01f457f379c674e0cf1a7ccea354
Reviewed-on: https://chromium-review.googlesource.com/c/1446653
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Eric Willigers \<ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628023}

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Ran 2 tests and 5 subtests
OK     : 2
PASS   : 5
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a7fed89d3736
[wpt PR 15162] - Don't skip invalid functions when looking for var references., a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.