Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

CSS parser incorrectly parses "1.em" as "1em" #630

Closed
GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments
Closed

CSS parser incorrectly parses "1.em" as "1em" #630

GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

We are rewriting:

padding-top: 1.em

to:

padding-top:1em

CSS spec says that the number token is:

num     [0-9]+|[0-9]*\.[0-9]+

Spec CSS parser suggests tokenizing this as:

IDENT(padding-top) : INT(1) DELIM(.) IDENT(em)

not as:

IDENT(padding-top) : DIM(1,em)

Original issue reported on code.google.com by sligocki@google.com on 27 Feb 2013 at 7:26

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r2570.

Original comment by sligocki@google.com on 1 Mar 2013 at 9:17

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by sligocki@google.com on 1 Mar 2013 at 9:19

  • Added labels: Milestone-v26, release-note

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant