Skip to content
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

CSS color-sheme article should mention HTML color-scheme value for meta element #38182

Open
AmeliaBR opened this issue Feb 16, 2025 · 1 comment · May be fixed by #38202
Open

CSS color-sheme article should mention HTML color-scheme value for meta element #38182

AmeliaBR opened this issue Feb 16, 2025 · 1 comment · May be fixed by #38202
Labels
Content:CSS Cascading Style Sheets docs help wanted If you know something about this topic, we would love your help!

Comments

@AmeliaBR
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme

What specific section or headline is this issue about?

examples / additional info (new section needed)

What information was incorrect, unhelpful, or incomplete?

The color-scheme option in the HTML meta tag is the recommended way to set to the CSS color-scheme value for the root element, before CSS has even been parsed (to avoid a flash of bright white before loading a dark mode web page). It should be mentioned when discussing the CSS property.

I was specifically searching for the meta tag syntax, and it didn't come up in the top search results for "color-scheme". So I guess a second issue could be filed against the Standard metadata names article, to mark them up so they are easier to find by search! (The name values are currently just list items, not headings or linkable definitions)

What did you expect to see?

I expected to at least find a link to the meta definitions from this page.

Do you have any supporting links, references, or citations?

HTML spec: https://html.spec.whatwg.org/multipage/semantics.html#meta-color-scheme

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@AmeliaBR AmeliaBR added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 16, 2025
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs Content:HTML Hypertext Markup Language docs labels Feb 16, 2025
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed Content:HTML Hypertext Markup Language docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Feb 16, 2025
@mellash
Copy link

mellash commented Feb 16, 2025

I think adding a note at the top of color-scheme about meta name color-scheme would solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants