[Webkit-unassigned] [Bug 271618] New: Mixed values type in rgb() function for setting the colors trip the CSS rgb() parser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 25 03:53:39 PDT 2024


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

            Bug ID: 271618
           Summary: Mixed values type in rgb() function for setting the
                    colors trip the CSS rgb() parser
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
               URL: https://wpt.fyi/results/css/css-color/parsing/color-va
                    lid-rgb.html
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: karlcow at apple.com
                CC: m_dubet at apple.com, webkit-bug-importer at group.apple.com

Matthieu,

https://wpt.fyi/results/css/css-color/parsing/color-valid-rgb.html FAILS two subtests
http://wpt.live/css/css-color/parsing/color-valid-rgb.html

The tests pass in Firefox and Chrome.

Set 
   div.style["color"] = "rgb(300% 300% 300%)"
Then 
   div.style.getPropertyValue('color')
Returns (as it should)
   "rgb(255, 255, 255)"

It has clamped the value to the maximum value.


Bu then if you are mixing the types of values:
  div.style["color"] = "rgb(250% 51 40%)"
Then 
   div.style.getPropertyValue('color')
Returns (as it should)
   ""

An empty string.

-- 
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/20240325/87db60e9/attachment-0001.htm>


More information about the webkit-unassigned mailing list