diff --git a/lib/parser.js b/lib/parser.js index 8a0441174..001d7a9a2 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -347,6 +347,8 @@ class Parser { if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) { prev.raws.ownSemicolon = this.spaces this.spaces = '' + prev.source.end = this.getPosition(token[2]) + prev.source.end.offset += prev.raws.ownSemicolon.length } } }