<?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>245970</bug_id>
          
          <creation_ts>2022-10-03 09:41:19 -0700</creation_ts>
          <short_desc>Relative color syntax doesn&apos;t work with currentColor or system colors</short_desc>
          <delta_ts>2024-07-28 17:50:35 -0700</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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>234691</dependson>
          <blocked>277239</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthieu Dubet">m_dubet</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ariarzer</cc>
    
    <cc>dev</cc>
    
    <cc>dpino</cc>
    
    <cc>ntim</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>woodlxf00</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1902877</commentid>
    <comment_count>0</comment_count>
    <who name="Matthieu Dubet">m_dubet</who>
    <bug_when>2022-10-03 09:41:19 -0700</bug_when>
    <thetext>The CSS 5 color mutation functions (color-mix(), color-contrast(), relative color syntax) don&apos;t work with currentcolor or system-colors as one of their origin colors.

This is due to the parser not being the right time to resolve those values, so some intermediate type is going to be needed to late resolve these things (perhaps time for a CSSColor object that can be resolved into a Color when appropriate).


Depends on : https://bugs.webkit.org/show_bug.cgi?id=234691</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904506</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-10 09:20:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/100981965&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927204</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-01-21 22:27:30 -0800</bug_when>
    <thetext>Bug 250459 fixes `color-mix()`. 

`color-contrast()` needs a brand new implementation given the new spec (`contrast-color()`) which is very different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2010148</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-02-02 09:51:12 -0800</bug_when>
    <thetext>Should I link this bug to all InterOp 2024 tests for Relative Color Syntax (except Parsing):

https://wpt.fyi/results/css/css-color?label=master&amp;label=experimental&amp;aligned=&amp;view=interop&amp;q=label%3Ainterop-2024-relative-color

I am trying to get upstart in InterOp 2024 and trying to link bugs for easier tracking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2010160</commentid>
    <comment_count>4</comment_count>
    <who name="Matthieu Dubet">m_dubet</who>
    <bug_when>2024-02-02 10:29:23 -0800</bug_when>
    <thetext>Yes indeed we should link this to Interop 2024.

(I&apos;m currently implementing this feature though - let&apos;s not duplicate work)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027187</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2024-04-09 10:34:48 -0700</bug_when>
    <thetext>Matt, you still working on this? If not, I would be happy to take this on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034782</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2024-05-12 11:51:46 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28445</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034977</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-13 10:16:47 -0700</bug_when>
    <thetext>Committed 278696@main (c05a19a495bd): &lt;https://commits.webkit.org/278696@main&gt;

Reviewed commits have been landed. Closing PR #28445 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034979</commentid>
    <comment_count>8</comment_count>
    <who name="Roman Czerkies">dev</who>
    <bug_when>2024-05-13 10:29:08 -0700</bug_when>
    <thetext>Hello Sam,

is your work will include a fix for this issue 273996 ?
(https://bugs.webkit.org/show_bug.cgi?id=273996)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035269</commentid>
    <comment_count>9</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-05-14 09:26:28 -0700</bug_when>
    <thetext>Build bot &apos;GTK-Linux-64-bit-Release-Debian-11-Build&apos; is failing after this patch with the following build error:

https://build.webkit.org/#/builders/992/builds/2243

```
../../../Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.cpp:439:65: error: expected ‘(’ before ‘{’ token
  439 |         return consumeColorSpace(args, [&amp;]&lt;typename Descriptor&gt; {
      |                                                                 ^
      |                                                                 (
../../../Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.cpp:444:61: error: expected ‘(’ before ‘{’ token
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035270</commentid>
    <comment_count>10</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-05-14 09:27:36 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/webkit/webkit/pull/28541</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035275</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-14 09:32:30 -0700</bug_when>
    <thetext>Committed 278766@main (005715370cbf): &lt;https://commits.webkit.org/278766@main&gt;

Reviewed commits have been landed. Closing PR #28541 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>