[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
Sat Sep 11 16:48:35 PDT 2021


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

--- Comment #15 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
I just spent an entire day writing basically the same patch. Can this one land?

However, I did take a slightly different tack. I allowed exponential notation in serialized values for <number> properties, which matches the parsing rules (https://drafts.csswg.org/css-values/#numbers). <integer> values serialize as they do now.

This required adding a CSS_INTEGER CSSUnitType so that CSSPrimitiveValues are now CSS_INTEGER or CSS_NUMBER. This does add a bit of complexity, but brings clarity to <integer> vs <number> in various places.

-- 
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/20210911/59f9ce53/attachment.htm>


More information about the webkit-unassigned mailing list