Skip to content

[css-text-4] Japanese text (in #jp-title-break) in Example 24 is unreadable, with dark color-scheme #11099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dholbert opened this issue Oct 28, 2024 · 3 comments

Comments

@dholbert
Copy link
Member

dholbert commented Oct 28, 2024

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 default color be inherited through; and if you do that, you end up with a light color 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 setting color: