Open Crissov opened 5 days ago
Note: text-color
and foreground-color
already the thing. And there is no progress on the similar proposal to add a keyword in #5292 (if the spec changes currentcolor
it won't be very web compatible), instead inherit()
will cover this possibility.
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: