> On Nov 5, 2015, at 11:24 PM, L. David Baron <dba...@dbaron.org> wrote:
> 
> For what it's worth, Gecko does have code to produce a
> minimal-length alpha value.  nsStyleUtil::ColorComponentToFloat just
> tries rounding to 2 decimal places, sees if the resulting float
> round-trips back to the same 0-255 alpha value, and if it doesn't,
> rounds to 3 places.

Got it. Sounds like it does what I have in mind. Except that given what you say 
it sounds like it doesn’t use a single decimal place even if that round trips, 
so for 51 it uses 0.20 rather than 0.2.

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

Reply via email to