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
{{ message }}
Repository navigation
[css-values-3] 4.3 Real numbers incorrectly summarizes allowed values #7248
Once again I was trying to find the definition for SVG real numbers and the chain of refs led me to CSS Syntax. Specifically I was trying to find the 'rightness' of an emitted "9e-5" or "-1e-4".
But then when I returned to CSS Values and read the description of valid values, it seems to only allow "1.0e1" and not "1e1". The prose requires a '.' decimal point in order to specify an exponent.
Or... was "and optionally an exponent" supposed to also apply to the much earlier "an integer"? As written this section seems very ambiguous to this easily-shaken reader.
The prose there is descriptive, not normative; CSS Syntax defines how parsing works, and 1e2 is definitely allowed. (The railroad diagrams are also descriptive, not normative, but they match the parsing algo.)
That said, the V&U text is indeed written confusingly and should be adjusted.
Activity
tabatkins commentedon May 3, 2022
The prose there is descriptive, not normative; CSS Syntax defines how parsing works, and
1e2is definitely allowed. (The railroad diagrams are also descriptive, not normative, but they match the parsing algo.)That said, the V&U text is indeed written confusingly and should be adjusted.