[Webkit-unassigned] [Bug 232041] New: inverted-colors media query matches smart invert and not classic invert

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 20 14:01:47 PDT 2021


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

            Bug ID: 232041
           Summary: inverted-colors media query matches smart invert and
                    not classic invert
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: luke at warlow.dev

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' Classic Invert setting) and NOT when the UA has done some smart invert (as is the case with macOS' "Invert colours" setting when "Classic Invert" isn't also checked).

Safari (at least on macOS) does the opposite of this. When "Invert colours" is checked, but "Classic Invert" is not, the media query matches. But when "Classic Invert" 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.

-- 
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/20211020/de70bd6f/attachment-0001.htm>


More information about the webkit-unassigned mailing list