Skip to content
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

Issue when parsing font-weight declarations #51

Open
redecheck opened this issue Dec 15, 2015 · 2 comments
Open

Issue when parsing font-weight declarations #51

redecheck opened this issue Dec 15, 2015 · 2 comments

Comments

@redecheck
Copy link

Currently, font-weight declarations are parsed successfully. However, when trying to write the parsed CSS to a file, these declarations are printed as floats (e.g. font-weight: 400.0) which is ignored by several modern browsers. I believe these need to be printed without the .0 in order for the browser to correctly interpret them.

@radkovo
Copy link
Owner

radkovo commented Dec 23, 2015

I did several experiments but i am not able to reproduce this issue. I always obtain font-weight: 400. Could you provide some details how the result is printed, an example of the input file etc.?

@Chexpir
Copy link

Chexpir commented May 17, 2016

+1 It happens in general with any sort of CSS using integers, or ending in a number even with text behind it.

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

No branches or pull requests

2 participants