closure-stylesheets icon indicating copy to clipboard operation
closure-stylesheets copied to clipboard

Parser error on @viewport

Open a701440 opened this issue 9 years ago • 3 comments
trafficstars

@media screen and (max-width: 605px) { @viewport { width: 100px; } ...

Looking at the parser stack: at_rule->block->at_rule->block->ruleSet

It takes "width" as a selector inside of the ruleSet. Not as a property name.

a701440 avatar Oct 31 '16 15:10 a701440

Yeah, this is a known problem.

iflan avatar Oct 31 '16 15:10 iflan

There is a similar problem with @supports and @charset tag, is there any way for the compiler to ignore those attributes all together? That way this problem can be temporarily mitigated.

puranjayjain avatar Dec 19 '16 11:12 puranjayjain

It's not quite as easy as that, unfortunately. :-( I'll try to take a look at this soon, but my recent focus has been improving sourcemap support. If you have a patch, I'll gladly look at it.

iflan avatar Dec 21 '16 16:12 iflan