[wpt-sync] Sync PR 33273 - Implement CSSColorValue.parse
Categories
(Core :: DOM: CSS Object Model, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox102 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 33273 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/33273
Details from upstream follow.
Seokho Song <seokho@chromium.org> wrote:
Implement CSSColorValue.parse
Implement parse function defined in [1] using 'ConsumeColor()'
from css_parsing_utils.Determine the color types by function type peeking the token range.
Then create a CSSColor object by the color type.Currently, Chromium only supports to parse rgb(), rgba(), hsl(),
\<hex-color> and \<named-color>.
Therefore, This CL implements supported color functions.[1] https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-parse
Bug: 1303851
Change-Id: I4204ed1f3d856509a1c12227d887938fc1f56e87Reviewed-on: https://chromium-review.googlesource.com/3522201
WPT-Export-Revision: 1bfc41445cb32c17ca82ce019b5bf4a0dd062c6b
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 3•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 60 subtests
Status Summary
Firefox
ERROR: 1
Chrome
OK : 1
PASS : 40
FAIL : 20
Safari
ERROR: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-typed-om/stylevalue-subclasses/cssColorValue.html [wpt.fyi]:
ERROR[GitHub],SKIP[Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-linux1804-64-tsan-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:OK, Safari:ERROR)
Tests Disabled in Gecko Infrastructure
- /css/css-typed-om/stylevalue-subclasses/cssColorValue.html [wpt.fyi]:
ERROR[GitHub],SKIP[Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-linux1804-64-tsan-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:OK, Safari:ERROR)
Description
•