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

Open
ZachSaucier opened this Issue Jul 28, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@ZachSaucier

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.

@chharvey

This comment has been minimized.

Show comment
Hide comment
@chharvey

chharvey Aug 3, 2018

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 rgb()function may be used for an opaque color as well as a translucent/transparent color (where the alpha is not 1).

chharvey commented Aug 3, 2018

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 rgb()function may be used for an opaque color as well as a translucent/transparent color (where the alpha is not 1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment