[css-ui] Make accent-color
accept foreground and background value
#11180
Labels
css-ui-4
Current Work
accent-color
accept foreground and background value
#11180
https://drafts.csswg.org/css-ui-4/#propdef-accent-color
Arguably,
color
should have been a shorthand property to set two longhand properites, i.e.background-color
and a hypothetictext-color
orforeground-color
(reflected in thecurrentcolor
dynamic value, related tofill-color
andstroke-color
). I thought this was recorded in the list of mistakes but it is not.Can we make
accent-color
accept a second, optional<color>
value to override both,AccentColor
(mostly background) andAccentColorText
(foreground), from System Colors?Not being able to set both may lead to insufficient contrast for UA-defined accent text on a author-defined accent background.
PS: Original issue was #5900, see its resolution:
The text was updated successfully, but these errors were encountered: