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
Slash-separated color functions #2679
Comments
Here's the spec: https://drafts.csswg.org/css-color/#rgb-functions It allows for space-separated values for the red, green, and blue channels, with an optional alpha value followed by a slash. The red, green, blue, channels must all be percentages or all be numbers 0–255, and the alpha must either be a percentage or a number 0–1. Furthermore, the |
Here are some reports:
|
For Safari, the relevant bug was https://bugs.webkit.org/show_bug.cgi?id=192321. It seems this is now covered on caniuse here: https://caniuse.com/#feat=mdn-css_types_color_space_separated_functional_notation |
@mathiasbynens That looks good! Can we include these resources? |
For specs, we should always link to the working drafts, since that's what browsers strive to implement: https://drafts.csswg.org/css-color/#rgb-functions |
As mentioned, this is available at https://caniuse.com/#feat=mdn-css_types_color_space_separated_functional_notation For now it's not possible to add resources to MDN-generated support tables, though I plan on making that an option in the future. |
The above link does not work anymore. Here are working links, for those coming across this thread: |
Can the CSS Color page be edited to include the new slash-separated alpha value syntax? It also includes leaving out commas. Or a new page created specifically for it.
The text was updated successfully, but these errors were encountered: