Bug 1864258 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

According to:
https://drafts.csswg.org/css-color-4/#the-hwb-notation

the HWB syntax allows percentages and numbers for the whiteness and blackness components:

hwb() = hwb( 
  [<hue> | none] 
  [<percentage> | <number> | none] 
  [<percentage> | <number> | none] 
  [ / [<alpha-value> | none] ]? )

Currently we only parse percentages for those components.

hwb(20deg 50 40) should be a valid hwb value. The color-valid-hwb.html wpt test doesn't test for these values either.
According to:
https://drafts.csswg.org/css-color-4/#the-hwb-notation

the HWB syntax allows percentages and numbers for the whiteness and blackness components:

```
hwb() = hwb( 
  [<hue> | none] 
  [<percentage> | <number> | none] 
  [<percentage> | <number> | none] 
  [ / [<alpha-value> | none] ]? )
```

Currently we only parse percentages for those components.

hwb(20deg 50 40) should be a valid hwb value. The color-valid-hwb.html wpt test doesn't test for these values either.
According to:
https://drafts.csswg.org/css-color-4/#the-hwb-notation

the HWB syntax allows percentages and numbers for the whiteness and blackness components:

```
hwb() = hwb( 
  [<hue> | none] 
  [<percentage> | <number> | none] 
  [<percentage> | <number> | none] 
  [ / [<alpha-value> | none] ]? )
```

Currently we only parse percentages for those components.

hwb(20deg 50 40) should be a valid hwb value. The color-valid-hwb.html wpt test doesn't test for these values either.

According to:
https://drafts.csswg.org/css-color-4/#the-hsl-notation

the modern HSL syntax allows percentages and numbers for the saturation and lightness components:

<modern-hsl-syntax> = hsl( 
    [<hue> | none] 
    [<percentage> | <number> | none] 
    [<percentage> | <number> | none] 
    [ / [<alpha-value> | none] ]? )

Currently we only parse percentages for the modern syntax.

`hsl(20deg 50 40)` should be a valid hsl value. The `color-valid-hsl.html` wpt test doesn't test for these values either.
According to:
https://drafts.csswg.org/css-color-4/#the-hwb-notation

the HWB syntax allows percentages and numbers for the whiteness and blackness components:

```
hwb() = hwb( 
  [<hue> | none] 
  [<percentage> | <number> | none] 
  [<percentage> | <number> | none] 
  [ / [<alpha-value> | none] ]? )
```

Currently we only parse percentages for those components.

hwb(20deg 50 40) should be a valid hwb value. The color-valid-hwb.html wpt test doesn't test for these values either.

According to:
https://drafts.csswg.org/css-color-4/#the-hsl-notation

the modern HSL syntax allows percentages and numbers for the saturation and lightness components:

```
<modern-hsl-syntax> = hsl( 
    [<hue> | none] 
    [<percentage> | <number> | none] 
    [<percentage> | <number> | none] 
    [ / [<alpha-value> | none] ]? )
```

Currently we only parse percentages for the modern syntax.

`hsl(20deg 50 40)` should be a valid hsl value. The `color-valid-hsl.html` wpt test doesn't test for these values either.

Back to Bug 1864258 Comment 0