Skip to content

Commit

Permalink
[css-ui-4] Define behavior for (semi) transparent accent colors
Browse files Browse the repository at this point in the history
See #9852
  • Loading branch information
frivoal committed Jun 17, 2024
1 parent df306f8 commit 6993c34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions css-ui-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2098,6 +2098,13 @@ Widget Accent Colors: the 'accent-color' property</h3>
</table>
</div>

If the color supplied is partially or fully transparent,
the user agent must first pre-compose it over the ''<system-color>/Canvas'' system color
and use the resulting (now opaque) color as the accent color.

Note: Although it may vary based on user settings,
''<system-color>/Canvas'' is typically white when in a [=light color scheme =]
and black when in a [=dark color scheme=].

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

0 comments on commit 6993c34

Please sign in to comment.