<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>204347</bug_id>
          
          <creation_ts>2019-11-19 03:13:15 -0800</creation_ts>
          <short_desc>CSSFastPaths::parseColor should handle more color specifications</short_desc>
          <delta_ts>2019-11-20 03:52:59 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>182686</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Lord">clord</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1591480</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Lord">clord</who>
    <bug_when>2019-11-19 03:13:15 -0800</bug_when>
    <thetext>Currently, the fast path handles keywords, hex colours and rgb/rgba, but doesn&apos;t handle rgb/rgba when the colour is terminated early and doesn&apos;t handle hsl/hsla. It would be helpful to handle those other cases, mainly so that OffscreenCanvas doesn&apos;t need to use the full parser to parse colours. Though this would be a small perf win in some (what I expect are) uncommon situations, this is mainly to help with OffscreenCanvas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1591954</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Lord">clord</who>
    <bug_when>2019-11-20 03:52:59 -0800</bug_when>
    <thetext>I no longer think this is a good idea, given better understanding of the colour spec. I don&apos;t think hsl(a) is used often enough to warrant maintaining a fast-path for, and I don&apos;t think the various odd but accepted ways of specifying colours make sense to complicate this code over.

Regards to OffscreenCanvas, I&apos;m taking the path of just making the full parser path verified thread-safe.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>