[css-text-4] Japanese text (in #jp-title-break) in Example 24 is unreadable, with dark color-scheme #11099
Labels
Closed Accepted as Editorial
Closed Accepted by Editor Discretion
css-text-4
Testing Unnecessary
Memory aid - issue doesn't require tests
If you view https://drafts.csswg.org/css-text-4/#jp-title-break with a dark color-scheme-preference in your browser, the Japanese text in the example is barely readable (light-gray-on-white-background).
This is because that section sets
background
while letting the defaultcolor
be inherited through; and if you do that, you end up with a lightcolor
in a dark-color-scheme.Here's the relevant style rule in the markup for this page -- note that we're setting
background
but not settingcolor
:csswg-drafts/css-text-4/Overview.bs
Lines 6874 to 6885 in 8932d2e
We perhaps want to add
color:black
or similar, just beforebackground:white
, so that we're not at the mercy of the inherited color-scheme-defined text-color here (which may or may not be hardcoded white background).The text was updated successfully, but these errors were encountered: