cwdoh/cssparser.js

Error on comma after pseudo element

Closed this issue · 2 comments

.navigation-wrapper:after, .main-navigation > ul:after, .split-section-row:after {
  content: "";
  display: table;
  clear: both; }

Error:

Error: Parse error on line 29:
...gation-wrapper:after, .main-navigation >
-----------------------^
Expecting ':', 'HASH', '.', '[', 'S', got ','
@charset 'utf-8';

.foo .bar, .foo .falana {
    width: 100px;
}

Error:
Parse error on line 3:
oo .bar, .foo .falana {
----------^
Expecting ':', 'HASH', '.', '[', 'S', got ','

cwdoh commented

Too late, but fixed rewrited parser. You can test it at testsite :)