Skip to content

Commit cffce20

Browse files
committed
[css-color-adjust-1] Forced backgrounds should not affect alpha. w3c#4175
1 parent 0dbaa9f commit cffce20

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

css-color-adjust-1/Overview.bs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ Properties Affected by Forced Colors Mode {#forced-colors-properties}
349349

350350
When <a>forced colors mode</a> is active
351351
and 'forced-color-adjust' is ''forced-color-adjust/auto'' (see below),
352-
the following <a>user origin</a> declarations [[!CSS-CASCADE-4]]
352+
colors must be force-adjusted to the user’s preferred color palette.
353+
354+
The following <a>user origin</a> declarations [[!CSS-CASCADE-4]]
353355
are applied to the element:
354356

355357
<pre>
@@ -358,7 +360,6 @@ Properties Affected by Forced Colors Mode {#forced-colors-properties}
358360
stroke: revert !important;
359361
text-decoration-color: revert !important;
360362
text-emphasis-color: revert !important;
361-
background-color: revert !important;
362363
border-color: revert !important;
363364
outline-color: revert !important;
364365
column-rule-color: revert !important;
@@ -369,6 +370,16 @@ Properties Affected by Forced Colors Mode {#forced-colors-properties}
369370
text-shadow: none !important;
370371
</pre>
371372

373+
For elements that have a background specified in the UA style sheet,
374+
the background color is forced via:
375+
<pre>
376+
background-color: revert !important;
377+
</pre>
378+
379+
Whereas for all other elements, the 'background-color' is instead adjusted
380+
by forcing all channels other than alpha
381+
to match ''Canvas''.
382+
372383
Additionally, on <em>on user input controls (except button-like controls) only</em>:
373384
<pre>
374385
background-image: none !important;

0 commit comments

Comments
 (0)