-
Notifications
You must be signed in to change notification settings - Fork 793
[cssom] Is round special in CSSOM? #5689
Copy link
Copy link
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-values-4Current WorkCurrent Workcssom-1Current WorkCurrent Work
Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-values-4Current WorkCurrent Workcssom-1Current WorkCurrent Work
Type
Fields
Give feedbackNo fields configured for issues without a type.
Context: moving the serialization of <color> values from CSSOM to CSS Color 4, per CSSWG resolution. I'm just checking that the new Color serialization section has everything needed before sending a PR to replace the corresponding part of CSSOM with a pointer.
Several times in Serializing CSS Values I see the phrase:
Looking at the documentation of JavaScript
Math.roundand again for C++
Then, for positive numbers, this seems to be merely a restatement of part of the algorithm. In other words, the next decimal digit after the place to be rounded can take any one of ten values:
0,1,2,3,4,5,6,7,8,9and of those, half of them (0,1,2,3,4) round down and half (5,6,7,8,9) round up.Thus, is there utility in retaining this wording? Or is it enough to just say "round". I'm happy either way, just want the Color 4 spec to be complete.