- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 Mar 2023 09:01:10 +0000
- To: public-css-archive@w3.org
romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-color-4] `hsl()` modern syntax allows `<number>` but seems to be lacking details and WPT tests ==
https://drafts.csswg.org/css-color-4/#the-hsl-notation
```
<modern-hsl-syntax> = hsl(
[<hue> | none]
[<percentage> | <number> | none]
[<percentage> | <number> | none]
[ / [<alpha-value> | none] ]? )
```
But none of the prose or examples give any indication or even mention `<number>`.
I also couldn't find any WPT tests, but there are many and I might be overlooking cases where `%` was omitted.
I am assuming this was a recent addition because no browser implements support for numbers in `s` and/or `l`
```css
* {
background-color: hsl(50deg 0.5 0.5);
}
```
All other color functions that support numbers and percentages have the percentage range in prose or in a section :
```
Percent reference range for L: 0% = 0.0, 100% = 1.0
for C: 0% = 0.0 100% = 0.4
```
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8515 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 2 March 2023 09:01:12 UTC