Closed ArgonAlex closed 3 years ago
Thank you for the report! Now I see the origin of the issue and able to reproduce it.
I found that this is a bug in CSSTree's parser when parseValue
option is set to false
(it set to false
in csstree-validator
to speed up parsing since it not needed for a detailed AST for values). In this case !important
is included into a value but must not. I will address a fix for this ASAP. The status can be tracked in https://github.com/csstree/csstree/issues/155 (original report about the problem). But this issue is also useful since the bug affects csstree-validator
and will indicate when fix will come into csstree-validator
.
Thanks!
Related to csstree/csstree/issues/155
Should we be using
matchDeclaration()
instead ofmatchProperty()
?