Skip to content

Commit 7fad27c

Browse files
committed
[mediaqueries-5] Clarify that inverted-colors is for non-smart pixel-level invert only
1 parent 218664e commit 7fad27c

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

mediaqueries-5/Overview.bs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,16 @@ Detecting the desire for inverted colors on the display: the 'inverted-colors' f
487487
<dd>
488488
All pixels within the displayed area have been inverted.
489489

490+
This value must not match
491+
if the User Agent has done some kind of content aware inversion
492+
such as one that preserves the images.
493+
494+
Note: This is because the goal of this media feature
495+
is to enable authors to mitigate the undesirable effects of the non content aware approach
496+
that invert <em>all</em> the pixels.
497+
If the author were to take counter measures even in the content-aware cases,
498+
their counter measures and the UA's would be at risk of cancelling each other.
499+
490500
</dl>
491501

492502
<div class="example">
@@ -502,12 +512,6 @@ Detecting the desire for inverted colors on the display: the 'inverted-colors' f
502512
</pre>
503513
</div>
504514

505-
ISSUE: This is implemented in a wide variety of ways
506-
some that do or do not preserve hue and/or images original colors
507-
and there is no clear way for authors to react to this media query being true.
508-
(See <a href="https://github.com/w3c/csswg-drafts/issues/3807">discussion</a>.)
509-
Possible ways forward: add more values to reflect variations, or drop the feature.
510-
511515
<h3 id="prefers-reduced-motion">
512516
Detecting the desire for less motion on the page: the 'prefers-reduced-motion' feature</h3>
513517

0 commit comments

Comments
 (0)