Re: [csswg-drafts] [cssom] Serialization of large numbers should use scientific notation (#6471)

The CSS Working Group just discussed `[cssom] Serialization of large numbers should use scientific notation`, and agreed to the following:

* `RESOLVED: Take scientific notation and match serialization of JS`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [cssom] Serialization of large numbers should use scientific notation<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/6471<br>
&lt;dael> Rossen_: Added to TPAC agenda but we didn't get to it<br>
&lt;dael> smfr: The issue is how large numbeer serialize.<br>
&lt;dael> smfr: Agreed in past to allow scientific notation when we pass. Difference in serialization. FF and Blink use scientific notation. Webkit writes them out<br>
&lt;dael> smfr: One question is if should be different for numbeer vs int. z-index how much precision do we maintain so they round trip, for example<br>
&lt;dael> smfr: And then there are differences like blink adds leading 0s.<br>
&lt;TabAtkins> q+<br>
&lt;dael> smfr: This impacts wpt so would be good to resolve<br>
&lt;florian> q-<br>
&lt;Rossen_> ack florian<br>
&lt;Rossen_> ack TabAtkins<br>
&lt;TabAtkins> https://drafts.csswg.org/cssom/#serializing-css-values<br>
&lt;dael> TabAtkins: Well defined in CSSOM. Will grab a link<br>
&lt;dael> TabAtkins: Per this int serialize fully and floats with no more than 6 digits. If needed scientific with 6 digits.<br>
&lt;dael> TabAtkins: it is defined. If question is should define something else we can talk about it<br>
&lt;dael> smfr: Fine with as spec. Q is if impl will impl as spec<br>
&lt;dael> florian: Does this no more than 6 cover the leading 0s?<br>
&lt;dael> TabAtkins: 6 significant digits. And need to use shortest form. Leading 0s are dropped<br>
&lt;TabAtkins> "A base-ten number using digits 0-9 (U+0030 to U+0039) in the shortest form possible, using "." to separate decimals (if any), rounding the value if necessary to not produce more than 6 decimals, preceded by "-" (U+002D) if it is negative."<br>
&lt;Rossen_> q?<br>
&lt;dael> Rossen_: Sounds like we don't need to change a definition. Back to smfr question about are impl willing to use this definition?<br>
&lt;dael> Rossen_: Survey question to implementors<br>
&lt;dael> iank_: All of our folks are in EU so I'm not sure<br>
&lt;dael> Rossen_: Perhaps we don't have right folks.<br>
&lt;dael> Rossen_: We can resolve on the issue as no change to spec and encourage implementors to engage<br>
&lt;dael> Rossen_: Reasonable?<br>
&lt;dael> smfr: I'm reading the link from TabAtkins it says scientific notation is not used. Is it out of date?<br>
&lt;dael> TabAtkins: Yes, must be. Thought it was required. Integer question is answered. Hmm.<br>
&lt;dael> TabAtkins: No way to satisfy this without scientific notation. If you do a large number you need more than 6<br>
&lt;dael> Rossen_: And why is it a note?<br>
&lt;dael> TabAtkins: It's a clarification. It should fall out from definition.<br>
&lt;dael> Rossen_: Perhaps we can try and ammend the spec to require scientific notation?<br>
&lt;dael> TabAtkins: Yes<br>
&lt;dael> smfr: Serialization we can reference? Perhaps from JS?<br>
&lt;dael> TabAtkins: JS does have well spec one<br>
&lt;dael> smfr: Chrome JS doesn't match number serialization which is a bit surprising<br>
&lt;dael> Rossen_: We can call for resolution here to add scientific notation to be used for number<br>
&lt;dael> Rossen_: Then wait for TabAtkins or someone to define the serialization. Unles syou have one right now<br>
&lt;dael> TabAtkins: Happy to take that<br>
&lt;dael> Rossen_: Prop: Take scientific notation and match serialization of JS<br>
&lt;dael> Rossen_: Obj?<br>
&lt;dael> RESOLVED: Take scientific notation and match serialization of JS<br>
&lt;dael> Rossen_: Call to impl and getting feedback still stays<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6471#issuecomment-937325105 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 6 October 2021 23:36:31 UTC