- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Jan 2020 16:03:04 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Serializing color() values`, and agreed to the following: * `RESOLVED: color() functions, if they have a choice between percentage and number, they should use number` * ``RESOLVED: the `color(lab ...)` function, like the rest of the color() values, are in the 0-1 (or 0% - 100%) range. And they serialize the same as other color() values (as a 0-1 number).`` <details><summary>The full IRC log of that discussion</summary> <stantonm> topic: Serializing color() values<br> <astearns> github: https://github.com/w3c/csswg-drafts/issues/480<br> <stantonm> chris: dean raised how does the color function get serialized<br> <stantonm> ... whats a good serialization, for all the new ones they need to be floats<br> <stantonm> ... any problems with that in OM<br> <stantonm> TabAtkins: if it's not int it will serialize property, as long as data model underneath is number<br> <stantonm> chris: for color you can use 0-1, or 0-100%<br> <stantonm> ... 0-1 was simpler<br> <stantonm> emilio: consistent with alpha<br> <stantonm> RESOLVED: color() functions, if they have a choice between percentage and number, they should use number<br> <stantonm> chris: lightness is a percent, how do we handle that specific one<br> <stantonm> TabAtkins: percentage and number equilivence is defined as 0-1 equals 0-100%<br> <stantonm> ... so we can just accept number<br> <stantonm> s/can/can't/<br> <stantonm> ... in the color function, just follow the rules - which is 0-1<br> <stantonm> fantasai: agree with tab<br> <stantonm> florian: for match function we take 0-100?<br> <stantonm> christ: eventually caved to just take percent<br> <stantonm> TabAtkins: could be this one color space takes 0-400, so doesn't matter<br> <stantonm> chris: some people use equipment that gives back percent<br> <stantonm> fantasai: adding the percent sign makes sense<br> <chris> s/gives back percent/gives back L in 0 to 100 range and no percent<br> <stantonm> TabAtkins: don't do the weird thing with lab and percentages (?)<br> <stantonm> chris: did it for rgb, so we argued it might make sense for lab<br> <stantonm> ... it's longer so not being used as much<br> <AmeliaBR> We already have RGB functions where percentages map to 0-255 in integers. Because that's the convention for that data type. If integer 0-100 is the convention for lab.<br> <AmeliaBR> ... maybe makes sense to follow.<br> <fantasai> in the color() function?<br> <AmeliaBR> Ummm… I don't know which syntaxes are allowed there.<br> <TabAtkins> Proposed Resolution: the `color(lab ...)` function, like the rest of the color() values, are in the 0-1 (or 0% - 100%) range. And they serialize the same as other color() values (as a 0-1 number).<br> <stantonm> RESOLVED: the `color(lab ...)` function, like the rest of the color() values, are in the 0-1 (or 0% - 100%) range. And they serialize the same as other color() values (as a 0-1 number).<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/480#issuecomment-577747387 using your GitHub account
Received on Thursday, 23 January 2020 16:03:09 UTC