Re: [csswg-drafts] [css-color] Clarification needed on how missing alpha components flow through relative color syntax for hsl/hwb (#10254)

Ok, so the issue is that we treat those colors like "legacy" syntax, which generally doesn't allow `none`, but the `/` syntax does.

Chrome's handling seems broken as well, the `none` is completely missing when serializing:

```
a.style.backgroundColor = "rgb(100 100 0 / none)";
a.style.backgroundColor // 'rgba(100, 100, 0, 0)'
```

So, how should those colors serialize? Should we just serialize to `color(srgb ..)`? That'd be preferable IMO...

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10254#issuecomment-2162851048 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 June 2024 12:10:21 UTC