Skip to content

Commit 2ebb0a1

Browse files
authored
Update to color properties in Forced Colors Mode (#12166)
* changes to properties * further clarify what color properties means * small consistency fix
1 parent f40f567 commit 2ebb0a1

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

css-color-adjust-1/Overview.bs

+31-23
Original file line numberDiff line numberDiff line change
@@ -812,28 +812,36 @@ Properties Affected by Forced Colors Mode {#forced-colors-properties}
812812

813813
When <a>forced colors mode</a> is active
814814
and 'forced-color-adjust' is ''forced-color-adjust/auto'' (see below) on an element,
815-
colors on the element are force-adjusted to the user’s preferred color palette.
816-
817-
Specifically, for each of the following properties:
818-
819-
<ul>
820-
<li>'color'
821-
<li>'fill'
822-
<li>'stroke'
823-
<li>'text-decoration-color'
824-
<li>'text-emphasis-color'
825-
<li>'border-color'
826-
<li>'outline-color'
827-
<li>'column-rule-color'
828-
<li>'scrollbar-color'
829-
<li>'-webkit-tap-highlight-color'
830-
<li>'background-color'
831-
<li>'caret-color'
832-
<li>'flood-color'
833-
<li>'lighting-color'
834-
<li>'stop-color'
835-
</ul>
815+
the <<color>> components of all properties on the element
816+
are force-adjusted to the user’s preferred color palette.
817+
818+
<div class="note">
819+
Specifically, <a>forced colors mode</a> applies to the following color properties,
820+
along with their shorthands.
821+
This is the list of color properties existing at the time of writing,
822+
but it may not be an exhaustive list as more properties get added over time:
823+
824+
<ul>
825+
<li>'accent-color'
826+
<li>'background-color'
827+
<li>'border-color'
828+
<li>'caret-color'
829+
<li>'color'
830+
<li>'flood-color'
831+
<li>'fill'
832+
<li>'lighting-color'
833+
<li>'outline-color'
834+
<li>'rule-color'
835+
<li>'scrollbar-color'
836+
<li>'stop-color'
837+
<li>'stroke'
838+
<li>'text-decoration-color'
839+
<li>'text-emphasis-color'
840+
<li>'-webkit-tap-highlight-color'
841+
</ul>
842+
</div>
836843

844+
For each <<color>> component of a property,
837845
if its [=computed value=] is a color other than a [=system color=],
838846
its [=used value=] is instead forced to a [=system color=] as follows:
839847

@@ -878,8 +886,8 @@ Properties Affected by Forced Colors Mode {#forced-colors-properties}
878886
* 'background-image' computes to ''background-image/none''
879887
unless the original value contains a ''url()'' function
880888
* 'color-scheme' computes to ''light dark''
881-
* 'scrollbar-color' computed to ''scrollbar-color/auto''
882-
* 'accent-color' computed to ''accent-color/auto''
889+
* 'scrollbar-color' computes to ''scrollbar-color/auto''
890+
* 'accent-color' computes to ''accent-color/auto''
883891

884892
UAs may further tweak these <a>forced colors mode</a> heuristics
885893
to provide better user experience.

0 commit comments

Comments
 (0)