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

This CSS breaks the parser #44

Open
bitwombat opened this issue Mar 24, 2015 · 1 comment
Open

This CSS breaks the parser #44

bitwombat opened this issue Mar 24, 2015 · 1 comment

Comments

@bitwombat
Copy link

a#googleplus:hover,a#googleplus:active {
  background:transparent url(img/googleplus_a.png) no-repeat
}

/* Fixed layout for home page - don't*/
#home-top {
  height:336px;
  margin-bottom:100px
}

Test at http://www.senchalabs.org/cssbeautify/ and you'll see the CSS below the comments does not get changed. It's the apostrophe in "don't" that's doing it.

@kfriend
Copy link

kfriend commented Jul 21, 2015

I also ran into this issue. The problem is the parser is choking on the fact that there's either a single or double quote within a comment block, without a corresponding closing quote.

The following will not be formatted properly:

/* Testing failure from ' mark */  

p{color:red}

However, this works, with 2 single quotes

/* Testing failure from '' mark */  

p{color:red}

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