[Webkit-unassigned] [Bug 218880] Serialize CSS <number> values with rounding, limited decimal precision, and no exponents per-spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 16 10:19:11 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=218880

--- Comment #8 from Tyler Wilcock <twilco.o at protonmail.com> ---
OK, this is ready for a look.  This implementation changes serialization of <number> `CSSPrimitiveValue`s to be formatted at a fixed decimal width.  `*toFixedWidth` in WTFString and `dtoa.{h, cpp}` have been updated to allow truncation of trailing zeros to match the `*toFixedPrecision` variants of these methods (shown in below link).

https://github.com/WebKit/webkit/blob/817c46e152af795d735678386db68805d0aa505e/Source/WTF/wtf/dtoa.cpp#L95#L96

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201116/9588687f/attachment.htm>


More information about the webkit-unassigned mailing list