Skip to content

Commit

Permalink
Merge pull request #349 from ArsenyYankovsky/master
Browse files Browse the repository at this point in the history
Fix dangling comma in css selector
  • Loading branch information
jrit committed Jun 24, 2020
2 parents 0ce3da7 + 8b62920 commit 49b5412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ function inlineDocument($, css, options) {
var style = rule[1];
var selector = new utils.Selector(sel);
var parsedSelector = selector.parsed();

if (!parsedSelector) {
return;
}

var pseudoElementType = getPseudoElementType(parsedSelector);

// skip rule if the selector has any pseudos which are ignored
Expand Down

0 comments on commit 49b5412

Please sign in to comment.