<?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>230084</bug_id>
          
          <creation_ts>2021-09-08 23:24:09 -0700</creation_ts>
          <short_desc>Canvas shifts colors when using system color profiles</short_desc>
          <delta_ts>2022-05-31 13:30:46 -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>Canvas</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roland Soos">roland</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>heycam</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1791772</commentid>
    <comment_count>0</comment_count>
    <who name="Roland Soos">roland</who>
    <bug_when>2021-09-08 23:24:09 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Open https://jsfiddle.net/tz0qhowy/2/

The left element has a red background and an image which has 0.5 opacity.
The right element is a canvas which has red background and the image drawn with 50% opacity.

I think both the left and the right side should always perfectly match with each other. 

In Safari during you switch color profiles [OSX System settings -&gt; Displays -&gt; Color], you can clearly see that the color do not match on the canvas with the one rendered by HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792958</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-13 08:28:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/83056004&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873098</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-05-31 13:30:46 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.5 on macOS 12.4. It matches Chrome Canary 104. Although as per mentioned bug, Firefox Nightly 103 has desired behavior where left and right both have same colours.

Although the colours in Firefox Nightly are not affected by &quot;gfx.color_management.mode&quot; config, since I tried both 1 and 2 values as per &quot;MDN Page&quot;.

It can be spec bug since Firefox do have colour management issues (at least as far my knowledge goes) so Safari and Chrome might have correct behaviour. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>