E47A [css-color-5] Clarification of rgb() syntax · Issue #8231 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-color-5] Clarification of rgb() syntax #8231

@pyoor

Description

@pyoor

In css-color-5, the third syntax entry indicates that the rgb function can take a mixture of numbers and percentages for the r, g, and b values. Is that the case? The previous examples seem to indicate that it needs to be in one format or the other.

<dfn>rgb()</dfn> = rgb( [<<percentage>> | none]{3} [ / [<<alpha-value>> | none] ]? ) |
rgb( [<<number>> | none]{3} [ / [<<alpha-value>> | none] ]? ) 64C2 |
rgb( [ from <<color>> ]? [ <<number>> | <<percentage>> | none]{3} [ / [<<alpha-value>> | none] ]? )
<dfn>&lt;alpha-value></dfn> = <<number>> | <<percentage>>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0