[Webkit-unassigned] [Bug 193173] Web Inspector: "white" isn't recognized as a color keyword

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 5 15:53:20 PST 2019


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

Nikita Vasilyev <nvasilyev at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from Nikita Vasilyev <nvasilyev at apple.com> ---
That's because "white" is the value keyboard for -apple-pay-button-style:

    -apple-pay-button-style: Array (3)
    0 "black"
    1 "white"
    2 "white-outline"

Value keywords have precedence over color keywords in External/CodeMirror/css.js:

    function wordAsValue(stream) {
      var word = stream.current().toLowerCase();
      if (valueKeywords.hasOwnProperty(word))
        override = "atom";
      else if (colorKeywords.hasOwnProperty(word))
        override = "keyword";
      else
        override = "variable";
    }

-- 
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/20190105/c2951216/attachment.html>


More information about the webkit-unassigned mailing list