We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
错误selector的形式如下:
a,{ padding: 10px }
经解析后, 会形成如下的css dom.
[{ "type": "rule", "selectors": ["a"], "declarations": { "{padding": "10" } }]
可以看到padding属性前多了一个{, 其原因是Scanner.prototype.selector内没有为这种错误形式的css selector做兼容处理.
{
Scanner.prototype.selector
其结果是, 在a,{}后的所有样式失效. 原本浏览器可以自行解决的css写法错误, 在经过css dom的transform后, 成为了无法解决的css错误, 并且导致之后所有的css样式失效.
a,{}
The text was updated successfully, but these errors were encountered:
先用插件验证一下 css 语法呗,要是考虑错误语法兼容太牵强了
Sorry, something went wrong.
好的,后面有空处理下,最近业务比较忙
No branches or pull requests
错误selector的形式如下:
经解析后, 会形成如下的css dom.
可以看到padding属性前多了一个
{
, 其原因是Scanner.prototype.selector
内没有为这种错误形式的css selector做兼容处理.其结果是, 在
a,{}
后的所有样式失效. 原本浏览器可以自行解决的css写法错误, 在经过css dom的transform后, 成为了无法解决的css错误, 并且导致之后所有的css样式失效.The text was updated successfully, but these errors were encountered: