- From: Deron Meranda via GitHub <sysbot+gh@w3.org>
- Date: Sat, 22 Oct 2016 19:06:18 +0000
- To: public-css-archive@w3.org
dmeranda has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color] clarify the value allowed for the gray() function, percentage or number == In section 9 about the [gray() function](https://drafts.csswg.org/css-color/#grays) the syntax says it accepts a ```<number>``` as it's first parameter, but then the only example in the descriptive text mentions that "gray(50%)" is a visual mid-gray,which is a percentage value. Should gray accept either a ```<number>``` or ```<percentage>```, similar to [alpha-value](https://drafts.csswg.org/css-color/#typedef-alpha-value) — where ```gray(1)``` should be interpreted the same as ```gray(100%)```, which is white? Or alternatively, if gray is really supposed to be a shortcut for Lab's L value (with a=b=0), then should ```gray(100)``` be the same as ```gray(100%)```? And for that matter, if there is an equivalence being made between gray and Lab, should the [lab() function](https://drafts.csswg.org/css-color/#specifying-lab-lch) itself, and ```lch()```, allow either a number value (0 to 100) as well as a percentage for it's first parameter? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/635 using your GitHub account
Received on Saturday, 22 October 2016 19:06:25 UTC