Skip to content

[css-color-5] Mixing <number> and <percentage> in non-legacy <rgb()> #7363

@cdoublev

Description

@cdoublev

The current value definition of <rgb()> is:

rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) |
rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]?
rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )

I think only the last line should remain.

Also discussed in #7338.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions