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

Issue (question?) with "color()": "name of a color defined by a colorspace" #12209

Closed
coderfin opened this issue Jan 20, 2022 · 1 comment · Fixed by #23435
Closed

Issue (question?) with "color()": "name of a color defined by a colorspace" #12209

coderfin opened this issue Jan 20, 2022 · 1 comment · Fixed by #23435
Labels
Content:CSS Cascading Style Sheets docs effort: small This task is a small effort. help wanted If you know something about this topic, we would love your help!

Comments

@coderfin
Copy link

coderfin commented Jan 20, 2022

MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color()

What information was incorrect, unhelpful, or incomplete?

The document states that you can pass:

"a <string> giving the name of a color defined by the colorspace."

Am I missing something, are there colorspaces that have colors defined as strings similar to how currentColor is predefined, or is this page incorrect?

Specific section or headline?

https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color()#values

What did you expect to see?

It would be nice to have an example <string> defined by any colorspace.

Did you test this? If so, how?

I tested a few options of what I would expect to possibly work in the latest version of Safari on MacOS.
background: color(display-p3 1 0.5 0); - Works
background: color(srgb orange); - does not work

MDN Content page report details
@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 20, 2022
@sideshowbarker sideshowbarker added Content:CSS Cascading Style Sheets docs help wanted If you know something about this topic, we would love your help! effort: small This task is a small effort. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 20, 2022
@coderfin coderfin changed the title Question/Issue? with "color()": "name of a color defined by a colorspace" Issue (question?) with "color()": "name of a color defined by a colorspace" Jan 20, 2022
@danburzo
Copy link
Contributor

That part of the color() syntax has been removed.

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 effort: small This task is a small effort. 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.

4 participants