Skip to content

Add new csswg color specification drafts to accepted syntaxes #35

Description

@Munter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions