- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Wed, 11 Jan 2023 17:21:27 +0000
- To: public-css-archive@w3.org
> in hwb() you're still specifying the w and b keywords as percentages. Yes, because [in CSS Color 4](https://drafts.csswg.org/css-color-4/#the-hwb-notation) > The syntax of the [hwb()](https://drafts.csswg.org/css-color-4/#funcdef-hwb) function is: > hwb() = hwb( [[`<hue>`](https://drafts.csswg.org/css-color-4/#typedef-hue) [|](https://drafts.csswg.org/css-values-4/#comb-one) none] [[`<percentage>`](https://drafts.csswg.org/css-values-4/#percentage-value) [|](https://drafts.csswg.org/css-values-4/#comb-one) none] [[<percentage>](https://drafts.csswg.org/css-values-4/#percentage-value) [|](https://drafts.csswg.org/css-values-4/#comb-one) none] [ / [[`<alpha-value>`](https://drafts.csswg.org/css-color-4/#typedef-alpha-value) [|](https://drafts.csswg.org/css-values-4/#comb-one) none] ][?](https://drafts.csswg.org/css-values-4/#mult-opt) and > The second argument specifies the amount of white to mix in, **as a percentage** from 0% (no whiteness) to 100% (full whiteness). Similarly, the third argument specifies the amount of black to mix in, also from 0% (no blackness) to 100% (full blackness). So percentage is required and number is not allowed. Should that be changed? So numbers are not accepted, only percentages. Same as the non-hue components in HSL. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7876#issuecomment-1379222327 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 11 January 2023 17:21:29 UTC