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

Add new csswg color specification drafts to accepted syntaxes #35

Open
Munter opened this issue Jul 28, 2016 · 4 comments
Open

Add new csswg color specification drafts to accepted syntaxes #35

Munter opened this issue Jul 28, 2016 · 4 comments

Comments

@Munter
Copy link
Collaborator

Munter commented Jul 28, 2016

Updated syntages for rgb/rgba:

<dfn>rgb()</dfn> = rgb( <<rgb-component>>{3} [ / <<alpha-value>> ]? ) | rgb( <<rgb-component>>#{3} , <<alpha-value>>? )
 <dfn>rgba()</dfn> = rgba( <<rgb-component>>{3} [ / <<alpha-value>> ]? ) | rgba( <<rgb-component>>#{3} , <<alpha-value>>? )

similar for hsl/hsla:

<dfn>hsl()</dfn> = hsl( <<hue>> <<percentage>> <<percentage>> [ / <<alpha-value>> ]? ) | hsl( <<hue>>, <<percentage>>, <<percentage>>, <<alpha-value>>? )
<dfn>hsla()</dfn> = hsla( <<hue>> <<percentage>> <<percentage>> [ / <<alpha-value>> ]? ) | hsla( <<hue>>, <<percentage>>, <<percentage>>, <<alpha-value>>? )

Also worth noting: ''hsl()'' and ''hsla()'' functions now accept <<angle>> as well as <<number>> for hues

See w3c/csswg-drafts@a54f8b2

@Munter
Copy link
Collaborator Author

Munter commented Jul 28, 2016

Related:

@jpdevries
Copy link

How about the new 8-Digit Hexadecimal color syntax?
https://css-tricks.com/8-digit-hex-codes/

Should that be a separate issue?

@papandreou
Copy link
Collaborator

@jpdevries: #36

@Munter
Copy link
Collaborator Author

Munter commented Sep 18, 2016

@jpdevries See my comment in #36 and please join the discussion if you have any input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants