Closed Bug 1831533 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39862 - [css-color-4] Preserve token range on malformed color-mix/color-contrast

Categories

(Core :: Layout: Images, Video, and HTML Frames, task, P4)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

[css-color-4] Preserve token range on malformed color-mix/color-contrast

Otherwise we get into problems with double-bar grammars, like e.g.
'border:1px solid color-mix(gibberish)', which will parse successfully
as 'border:1px solid' because the range is left AtEnd in error cases.

Fixed: 1442130
Change-Id: I0d4495afa4cde77d30e88c22c998a4091ce6d56e
Reviewed-on: https://chromium-review.googlesource.com/4507075
WPT-Export-Revision: 2bcf5ed73fca9fd9db28d5ced40505bbefe63362

Component: web-platform-tests → Layout: Images, Video, and HTML Frames
Product: Testing → Core
Try push failed: decision task D0r3l8htTJ25RY4Tww9agQ returned error
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20a06d3c1fdf [wpt PR 39862] - [css-color-4] Preserve token range on malformed color-mix/color-contrast, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.