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

Unexpected token '6ch' (CSS3 relative length units) #22

Closed
mahonnaise opened this issue Jun 15, 2011 · 5 comments
Closed

Unexpected token '6ch' (CSS3 relative length units) #22

mahonnaise opened this issue Jun 15, 2011 · 5 comments

Comments

@mahonnaise
Copy link
Contributor

E.g.: width:6ch.

http://www.w3.org/TR/css3-values/#relative0

@nzakas
Copy link
Contributor

nzakas commented Jun 15, 2011

Moved to parser bugs: CSSLint/parser-lib#11

@nzakas nzakas closed this as completed Jun 15, 2011
@nzakas
Copy link
Contributor

nzakas commented Jun 22, 2011

Which browsers support ch right now? It looks like webkit does not.

@mahonnaise
Copy link
Contributor Author

https://developer.mozilla.org/en/CSS/length

Firefox supports ch since 3.5 and rem since 3.6. Chrome supports rem since 5. And Opera currently supports neither.

ex is supported by all 3.

@itpastorn
Copy link

Since this is fixed in the parser, could this bug be re-opened here.

I strongly suspect that anyone usinf ch as a value are not doing so by mistake. (At least I'm not.)

@nzakas
Copy link
Contributor

nzakas commented Feb 22, 2012

CSS lint is already using the latest parser with the fix. The parser officially supports relative units now. The warning you're seeing is a validation error, which is different. If there is a behavior that you don't think is correct, please open another issue.

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

3 participants