@@ -1985,8 +1985,7 @@ Detecting inverted colors on the display: the 'inverted-colors' feature</h3>
19851985
19861986 This value must not match
19871987 if the user agent has done some kind of content aware inversion
1988- such as one that preserves the images
1989- (except through its UA style sheet, see below).
1988+ such as one that preserves the images.
19901989
19911990 Note: This is because the goal of this media feature
19921991 is to enable authors to mitigate the undesirable effects of the non content aware approach
@@ -1996,21 +1995,22 @@ Detecting inverted colors on the display: the 'inverted-colors' feature</h3>
19961995
19971996 </dl>
19981997
1999- User agents must add the following rule to their [=UA style sheet=] :
1998+ <div class="example">
1999+ Depending on their style sheet,
2000+ authors may wish to invert images and videos:
20002001
2001- <pre><code class=lang-css>
2002- @media (inverted-colors) {
2003- img:not(picture>img), picture, video { filter: invert(100%); }
2004- }
2005- </code></pre>
2002+ <pre class="lang-css">
2003+ @media (inverted-colors) {
2004+ img:not(picture > img), picture, video {
2005+ filter: invert(100%);
2006+ }
2007+ }
2008+ </pre>
20062009
2007- <div class="example">
2008- In addition to this UA style sheet rule,
2009- and depending on their style sheet,
2010- authors may also wish to invert images injected via CSS (such as backgrounds),
2011- or to disable shadows:
2010+ Authors may also invert images injected via CSS (such as backgrounds),
2011+ or disable shadows:
20122012
2013- <pre>
2013+ <pre class="lang-css" >
20142014 @media (inverted-colors) {
20152015 * {
20162016 text-shadow: none !important;
0 commit comments