@@ -1742,6 +1742,62 @@ color depth, and contrast ratio that are supported by the UA and output device.
17421742 will be vary depending on the User Agent,
17431743 but is expected to have broadly dependable semantics.
17441744
1745+ <h3 id="inverted">
1746+ Detecting inverted colors on the display: the 'inverted-colors' feature</h3>
1747+
1748+ <pre class='descdef mq'>
1749+ Name : inverted-colors
1750+ Value : none | inverted
1751+ For : @media
1752+ Type : discrete
1753+ </pre>
1754+
1755+ The 'inverted-colors' media feature indicates whether the content is displayed normally,
1756+ or whether colors have been inverted.
1757+
1758+ Note: This is an indication that the user agent or underlying
1759+ operating system has forcibly inverted all colors, not a request to do so.
1760+ This is sometimes provided as a simple accessibility feature,
1761+ allowing users to switch between light-on-dark and dark-on-light text.
1762+ However, this has unpleasant side effects,
1763+ such as inverting pictures,
1764+ or turning shadows into highlights,
1765+ which reduce the readability of the content.
1766+
1767+ <dl dfn-type=value dfn-for="@media/inverted-colors">
1768+ <dt> <dfn>none</dfn>
1769+ <dd>
1770+ Colors are displayed normally.
1771+
1772+ <dt> <dfn>inverted</dfn>
1773+ <dd>
1774+ All pixels within the displayed area have been inverted.
1775+
1776+ This value must not match
1777+ if the User Agent has done some kind of content aware inversion
1778+ such as one that preserves the images.
1779+
1780+ Note: This is because the goal of this media feature
1781+ is to enable authors to mitigate the undesirable effects of the non content aware approach
1782+ that invert <em> all</em> the pixels.
1783+ If the author were to take counter measures even in the content-aware cases,
1784+ their counter measures and the UA's would be at risk of cancelling each other.
1785+
1786+ </dl>
1787+
1788+ <div class="example">
1789+ For example, a user frequently using their operating system's ability to invert the screens color
1790+ may want to add the following to their user style sheet,
1791+ to limit the undesirable side effects of the inversion.
1792+
1793+ <pre>
1794+ @media (inverted-colors) {
1795+ img { filter: invert(100%); }
1796+ * { text-shadow: none !important; box-shadow: none !important; }
1797+ }
1798+ </pre>
1799+ </div>
1800+
17451801<!--
17461802████ ██ ██ ████████ ████████ ████████ ███ ██████ ████████ ████ ███████ ██ ██
17471803 ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
@@ -2595,59 +2651,6 @@ CSSOM</h2>
25952651<h2 id='mf-user-preferences'>
25962652User Preference Media Features</h2>
25972653
2598- <h3 id="inverted">
2599- Detecting the desire for inverted colors on the display: the 'inverted-colors' feature</h3>
2600-
2601- <pre class='descdef mq'>
2602- Name : inverted-colors
2603- Value : none | inverted
2604- For : @media
2605- Type : discrete
2606- </pre>
2607-
2608- The 'inverted-colors' media feature indicates whether the content is displayed normally, or whether colors have been inverted.
2609-
2610- Note: This is an indication that the user agent or underlying
2611- operating system has forcibly inverted all colors, not a request to do so. This
2612- is sometimes provided as a simple accessibility feature, allowing users to
2613- switch between light-on-dark and dark-on-light text. However, this has
2614- unpleasant side effects, such as inverting pictures, or turning shadows into
2615- highlights, which reduce the readability of the content.
2616-
2617- <dl dfn-type=value dfn-for="@media/inverted-colors">
2618- <dt> <dfn>none</dfn>
2619- <dd>
2620- Colors are displayed normally.
2621-
2622- <dt> <dfn>inverted</dfn>
2623- <dd>
2624- All pixels within the displayed area have been inverted.
2625-
2626- This value must not match
2627- if the User Agent has done some kind of content aware inversion
2628- such as one that preserves the images.
2629-
2630- Note: This is because the goal of this media feature
2631- is to enable authors to mitigate the undesirable effects of the non content aware approach
2632- that invert <em> all</em> the pixels.
2633- If the author were to take counter measures even in the content-aware cases,
2634- their counter measures and the UA's would be at risk of cancelling each other.
2635-
2636- </dl>
2637-
2638- <div class="example">
2639- For example, a user frequently using their operating system's ability to invert the screens color
2640- may want to add the following to their user style sheet,
2641- to limit the undesirable side effects of the inversion.
2642-
2643- <pre>
2644- @media (inverted-colors) {
2645- img { filter: invert(100%); }
2646- * { text-shadow: none !important; box-shadow: none !important; }
2647- }
2648- </pre>
2649- </div>
2650-
26512654<h3 id="prefers-reduced-motion">
26522655Detecting the desire for less motion on the page: the 'prefers-reduced-motion' feature</h3>
26532656
0 commit comments