W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

[csswg-drafts] Pull Request: [css-color-4] correct gray() example

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Sat, 27 Jan 2018 16:25:57 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.opened-165524597-1517070356-sysbot+gh@w3.org>
jonathantneal has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-color-4] correct gray() example ==
An example of `gray()` in the spec is using a percentage (`50%`), but the syntax for `gray()` should only use a number (`50`):

```
gray() = gray( <number>  [ / <alpha-value> ]? )
```

This is clarified in the description of its arguments:

> The first argument specifies the shade of gray, equal to the **CIE Lightness**...

And it’s further clarified directly below its descriptions:

> In other words, `gray(a / b)` is equal to `lab(a 0 0 / b)`.

See https://github.com/w3c/csswg-drafts/pull/2231
Received on Saturday, 27 January 2018 16:26:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC