Bug 1722789 [wpt PR 29823] - Handle font values that contain "var()" for OffscreenCan...
commitfe96898d5e703cc807a519ff6bcf21fa4926e7f0
authorAnders Hartvoll Ruud <andruud@chromium.org>
Fri, 30 Jul 2021 22:13:03 +0000 (30 22:13 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 31 Jul 2021 09:22:21 +0000 (31 09:22 +0000)
treecb94f278872547a5eda2ad71315c389f9babbae2
parent6b4c2feba34e15f6f8ea8d7a0e0a69841f28a858
Bug 1722789 [wpt PR 29823] - Handle font values that contain "var()" for OffscreenCanvas, a=testonly

Automatic update from web-platform-tests
Handle font values that contain "var()" for OffscreenCanvas

This is an offscreen equivalent to Bug 1131922. The fix for that
bug introduced CSSParser::ParseFont, which handles var() and CSS-wide
keywords correctly.

Use CSSParser::ParseFont for OffscreenCanvasRenderingContext2D as well.

Fixed: 1233430
Change-Id: Ic2119c64dec428f3b34f7fc0c15c86b6bcfe9195
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3058649
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#906604}

--

wpt-commits: e7d848ca78a17253dde9d49956bc00ae3ba91c57
wpt-pr: 29823
testing/web-platform/tests/html/canvas/offscreen/text/2d.text.font.parse.invalid.html
testing/web-platform/tests/html/canvas/offscreen/text/2d.text.font.parse.invalid.worker.js
testing/web-platform/tests/html/canvas/tools/yaml/offscreen/text.yaml