Skip to content

Commit 6993c34

Browse files
committed
[css-ui-4] Define behavior for (semi) transparent accent colors
See #9852
1 parent df306f8 commit 6993c34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-ui-4/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,6 +2098,13 @@ Widget Accent Colors: the 'accent-color' property</h3>
20982098
</table>
20992099
</div>
21002100

2101+
If the color supplied is partially or fully transparent,
2102+
the user agent must first pre-compose it over the ''<system-color>/Canvas'' system color
2103+
and use the resulting (now opaque) color as the accent color.
2104+
2105+
Note: Although it may vary based on user settings,
2106+
''<system-color>/Canvas'' is typically white when in a [=light color scheme =]
2107+
and black when in a [=dark color scheme=].
21012108

21022109
<h3 id="appearance-switching" caniuse="css-appearance">
21032110
Switching appearance: the 'appearance' property</h3>

0 commit comments

Comments
 (0)