We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9631b commit 8ddfcc0Copy full SHA for 8ddfcc0
1 file changed
css-color-4/Overview.bs
@@ -272,9 +272,9 @@ The RGB functions: ''rgb()'' and ''rgba()''</h3>
272
but ''255'' represents the maximum.
273
These values come from the fact that many graphics engines store the color channels internally as a single byte,
274
which can hold integers between 0 and 255.
275
- However, the CSS syntax allows full <<number>>s,
276
- not just <<integer>>s,
277
- for authoring convenience.
+ Implementations should honor the precision of the channel as authored wherever possible.
+ If this is not possible, the channel should be rounded to the closest value,
+ rounding up if two values are equally close.
278
279
The final argument, the <<alpha-value>>, specifies the alpha of the color.
280
If given as a <<number>>, the useful range of the value is ''0''
0 commit comments