> On Nov 1, 2015, at 7:40 PM, Darin Adler <da...@apple.com> wrote:
> 
> Hi folks.
> 
> Our engine supports alpha values from 0-255. But when we serialize them, we 
> turn them into floating point values. When we do that, we include way too 
> many digits of precision. For example, the alpha value 127 becomes 0.498039.
> 
> I like the idea of writing the minimum number of digits that are needed to 
> round trip. So 127 would become 0.498 or even maybe 0.49 and 128 would become 
> 0.5.
> 
> Three questions:
> 
> 1) Does the CSS specification allow or encourage this?

As long as the values round-trip, I think it’s OK.

> 2) Do you like this idea?

I would like to know what other browsers do.

Simon

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to