-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scientific notation has been removed from the path EBNF #286
Comments
That commit was me copying over @nikosandronikos's changes from 77ee738 and previous commits. However, I am fairly confident that you are correct, @nical, and that this was an unintentional change. As you noted in bodoni/svg#3, scientific notation has been problematic when trying to convert SVG to be more compatible with CSS. But my understanding was that it would continue to be valid in attributes. However, I now don't see any references to it in the Data Types chapter. Does anyone else remember a specific decision to remove support for scientific notation? That would be a major breaking change! |
CSS added scientific notation (in part, to be more compatible with SVG) some time ago as well. |
@tabatkins OK, great, so in that case it's covered by the general But since the path data uses a non-CSS parser, we need to re-define it there, too. Basically, this line
@nikosandronikos Can you confirm whether that's correct for the grammar? If so, we probably can make a resolution to correct it at this week's telcon. |
In terms of the path syntax, the scientific notation should be there and it's a mistake that it was removed. I'll add it back in next week. I don't think we need a resolution on this. |
On a side note. I don't really like having the path syntax grammar in the spec at all. Compared to describing the syntax in prose, which is simple, the grammar is very complicated and hard to test. |
Related conversation on www-svg The initial "bug" mentioned by the poster is not a bug, just one of the quirky features of the path data. But then later the actual bug (that is the subject of this issue) was noted: as currently written in SVG 2, "number" is defined only as integers. |
Not blocking updated 2.0 CR publication - assigning 2.1 WD milestone |
@ericwilligers I am assigning this one to you. Would you please look at the issue noted by @AmeliaBR in |
Fixed by #697 |
In the path specification, the BNF has been simplified this commit: 7cce3e3
In the process, the numbers in the paths lost support for the scientific notation (for example
2e-4
) Which is surprising to me. It looks like it was not intentional.The text was updated successfully, but these errors were encountered: