<?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>232041</bug_id>
          
          <creation_ts>2021-10-20 14:01:47 -0700</creation_ts>
          <short_desc>[meta] inverted-colors matches smart invert; should match classic</short_desc>
          <delta_ts>2023-08-03 13:52:09 -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>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>259682</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Luke Warlow">lwarlow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>koivisto</cc>
    
    <cc>lwarlow</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1806817</commentid>
    <comment_count>0</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2021-10-20 14:01:47 -0700</bug_when>
    <thetext>https://www.w3.org/TR/mediaqueries-5/#inverted - The media queries level 5 spec is pretty clear that the inverted-colors media query should only match when all pixels have been inverted (as is the case with macOS&apos; Classic Invert setting) and NOT when the UA has done some smart invert (as is the case with macOS&apos; &quot;Invert colours&quot; setting when &quot;Classic Invert&quot; isn&apos;t also checked).

Safari (at least on macOS) does the opposite of this. When &quot;Invert colours&quot; is checked, but &quot;Classic Invert&quot; is not, the media query matches. But when &quot;Classic Invert&quot; is then toggled the media query no longer matches.

It would be good if Safari was updated to match the specs behaviour, cause otherwise this media query is effectively useless to developers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809413</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-27 14:02:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/84726757&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969505</commentid>
    <comment_count>2</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-08-03 13:51:51 -0700</bug_when>
    <thetext>Having discussed this it turns out I&apos;ve misunderstood how the setting works and Safari is correct</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>