-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
!important without whitespace considered invalid in some cases #155
Comments
Considered by whom? I know nothing about issues with this. |
By csstree. I think it's a bug. console.log(require('css-tree').lexer.matchProperty('width', 'calc(33.33333% - 10px)!important;').error);
|
Thank you for clarification. So, you need to discard const { lexer, parse } = require('css-tree');
console.log(lexer.matchDeclaration(parse('width: calc(33.33333% - 10px)!important', { context: 'declaration' }))); |
Ah ok thanks for the explanation. I might have encountered a bug in |
As mentioned in csstree/validator#18, CSSTree's parser has a bug when |
…ns parentheses or brackets, in that case `!important` was included into a value (fixes #155)
Will be available in next release today. |
…arentheses or brackets when `parseValue` is set to `false`, in that case `!important` was included into a value. No changes in the source since it's already fixed in 2.0 (#155)
Fixed in 1.1.3 |
It seems like
!important
immediately preceded by a)
is being considered an invalid value. e.g:The text was updated successfully, but these errors were encountered: