You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON: http://json.org/ "number" production (mathematical decimal value) (should be the same as the Ecma 404 PDF but haven't checked) (Tab says this is the same as CSS)
It seems ideal to me if at least some of these could be shared. Maybe just between JSON and CSS, and HTML has extensions to it? I need to audit the potential differences.
Ah, I lied - JSON and CSS are not completely identical. Per the JSON.org diagram, JSON does not allow unnecessary leading zeros (02.3 is disallowed) (besides the leading 0 in 0.XXX forms), and JSON doesn't allow a fraction without an integer part (the .XXX form).
Activity
tabatkins commentedon Jan 23, 2018
Note: CSS and JSON also allow exponential notation (
1e2for 100, etc) in exactly the same way.tabatkins commentedon Jan 23, 2018
Ah, I lied - JSON and CSS are not completely identical. Per the JSON.org diagram, JSON does not allow unnecessary leading zeros (
02.3is disallowed) (besides the leading 0 in0.XXXforms), and JSON doesn't allow a fraction without an integer part (the.XXXform).