[Webkit-unassigned] [Bug 224810] New: Update CSS color-scheme property implementation up to latest spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 20 04:12:18 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224810

            Bug ID: 224810
           Summary: Update CSS color-scheme property implementation up to
                    latest spec
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ntim at apple.com

There are a couple of failures from the color-scheme WPT: https://wpt.fyi/results/css/css-color-adjust/parsing/color-scheme-computed.html?label=experimental&label=master&aligned, this is because WebKit implements an older spec.

Latest spec (implemented by Chromium): https://drafts.csswg.org/css-color-adjust-1/#color-scheme-prop

Here are differences from the spec that WebKit should implement:

* `auto` keyword is now `normal` (and `auto` becomes a `<custom-ident>` value)
* `only` keyword has been removed, and is just considered as a `<custom-ident>` value
* `<custom-ident>` values should be kept in the serialized CSS value (not sure that's part of the spec, but the WPT seems to reflect that)

Things where the WPT could be more flexible or wrong:

* Ordering of the color-schemes
* `only only` being serialized as it is? Since specifying a color-scheme multiple times is the same as specifying it once, maybe `only` is an acceptable serialization too?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210420/64a97818/attachment.htm>


More information about the webkit-unassigned mailing list