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

Incorrect parsing of line-height in font shorthand #16

Closed
ju1ius opened this issue Aug 28, 2011 · 0 comments
Closed

Incorrect parsing of line-height in font shorthand #16

ju1ius opened this issue Aug 28, 2011 · 0 comments

Comments

@ju1ius
Copy link

ju1ius commented Aug 28, 2011

div.main{
  font: 14px/1.2 Arial, sans-serif;
}
PHP Fatal error:  Uncaught exception 'Exception' with message 'Identifier expected, got /1.2 ' in /home/ju1ius/code/php/third-party/PHP-CSS-Parser/CSSParser.php:110
Stack trace:
#0 CSSParser.php(259): CSSParser->parseIdentifier()
#1 CSSParser.php(228): CSSParser->parseValue()
#2 CSSParser.php(216): CSSParser->parseRule()
#3 CSSParser.php(210): CSSParser->parseRuleSet(Object(CSSDeclarationBlock))
#4 CSSParser.php(50): CSSParser->parseSelector()
#5 CSSParser.php(35): CSSParser->parseList(Object(CSSDocument), true)
#6 CSSParser.php(29): CSSParser->parseDocument(Object(CSSDocument))
#7 test.php(17): CSSParser->parse()
#8 {main}
  thrown in CSSParser.php on line 110
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

Successfully merging a pull request may close this issue.

2 participants