CSS escapes and formating

PHPStorm has problems with CSS escapes ( https://www.w3.org/International/questions/qa-escapes#cssescapes ):

100%{color: red;}

This syntax is not allowed, but it can written via CSS escapes:

.\31 00 \25{color: red;}

Unfortunately PHPStorm doesn't know about the escapes and throw out a "unexpected token" error. And reformat it obfuscated:

.\31

00
\25{
color: red;
}

 

 

0

请先登录再写评论。