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

[css-color] rgba() and hsla() relative colors are valid #45087

Conversation

romainmenke
Copy link
Contributor

spec : https://drafts.csswg.org/css-color-5/#relative-RGB

<modern-rgb-syntax> = rgb( [ from <color> ]?
        [ <number> | <percentage> | none]{3}
        [ / [<alpha-value> | none] ]?  )
<modern-rgba-syntax> = rgba( [ from <color> ]?
        [ <number> | <percentage> | none]{3}
        [ / [<alpha-value> | none] ]?  )
<modern-hsl-syntax> = hsl([from <color>]?
          [<hue> | none]
          [<percentage> | <number> | none]
          [<percentage> | <number> | none]
          [ / [<alpha-value> | none] ]? )
<modern-hsla-syntax> = hsla([from <color>]?
        [<hue> | none]
        [<percentage> | <number> | none]
        [<percentage> | <number> | none]
        [ / [<alpha-value> | none] ]? )

This was changes a while ago in : w3c/csswg-drafts@42eaa4d

Discussed here:


I've edited the test so that it is easier to ensure that rgb and rgba are effectively aliases, same for hsl and hsla

@romainmenke romainmenke changed the title [css-color] rgba and hsla relative colors are valid [css-color] rgba() and hsla() relative colors are valid Mar 13, 2024
@nt1m nt1m requested a review from mdubet March 13, 2024 18:40
Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…ive-colors-are-valid--sincere-gerbil-b9f3dc4c64
@svgeesus svgeesus merged commit 825d804 into web-platform-tests:master Mar 18, 2024
17 checks passed
@romainmenke romainmenke deleted the rgba-and-hsla-relative-colors-are-valid--sincere-gerbil-b9f3dc4c64 branch March 18, 2024 12:42
BruceDai pushed a commit to BruceDai/wpt that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants