- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 Jun 2019 23:24:30 +0000
- To: public-css-archive@w3.org
I don't think this is appropriate for CSS Color 4. Percentage does not resolve to a number; actually the reverse. Numbers (which for historical reasons are constrained to assume 8 bits per color component) resolve to a percentage. Higher bit depths are increasingly common. Again for historical reasons, we have to use percentage here where really, if this were being designed now, we actually want a float in the rnge 0.0 to 1.0. But we can't have that because 0 and 1 would mean 0/255 and 1/255, so we have had percentages to stand in for floats since CSS1. > A <number> is equivalent to a <percentage>, but with a different range: 0 again represents the minimum value for the color channel, but 255 represents the maximum. These values come from the fact that many graphics engines store the color channels internally as a single byte, which can hold integers between 0 and 255. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/646#issuecomment-506080167 using your GitHub account
Received on Wednesday, 26 June 2019 23:24:31 UTC