[csswg-drafts] [css-syntax-3] Do not always parse a numeric expressed with scientific notation to a number (#7289)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax-3] Do not always parse a numeric expressed with scientific notation to a number ==
I do not believe there are meaningfull cases that warrant a fix for the following, if it is an actual bug. My motivation for creating this issue is also to use it for code documentation. I have searched for existing issues with "scientific notation integer", with no success. I also searched for a [WPT](https://github.com/web-platform-tests/wpt/blob/master/css/CSS2/syntax/scientific-notation-001.xht).

`order: 1e0` is parsed as invalid in browsers because `order` should be an `<integer>`.

I do not have a high education in maths: perhaps a number representing an integer but expressed with the scientific notation must not be considered as an integer. 

Otherwise, step 5.3 of [*consume a number*](https://drafts.csswg.org/css-syntax-3/#consume-a-number) could be replaced after step 6 by evaluating if `repr` is a number. I do not know how this evaluation can be translated into spec/WebIDL terms.

Or it may simply be decided that it is not worth to be fixed.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7289 using your GitHub account


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

Received on Friday, 20 May 2022 07:53:16 UTC