Skip to content

Commit 241c629

Browse files
committed
invert
1 parent 7c18385 commit 241c629

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/svelte/src/compiler/phases/1-parse/read/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ function read_selector_list(parser, inside_pseudo_class = false) {
153153
/** @type {import('#compiler').Css.Selector[]} */
154154
const children = [];
155155

156-
const start = parser.index;
157-
158156
parser.allow_whitespace();
159157

158+
const start = parser.index;
159+
160160
while (parser.index < parser.template.length) {
161161
children.push(read_selector(parser, inside_pseudo_class));
162162

packages/svelte/tests/parser-modern/samples/css-nth-syntax/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
"name": "nth-child",
496496
"args": {
497497
"type": "SelectorList",
498-
"start": 476,
498+
"start": 485,
499499
"end": 486,
500500
"children": [
501501
{

packages/svelte/tests/parser-modern/samples/css-pseudo-classes/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
"name": "is",
244244
"args": {
245245
"type": "SelectorList",
246-
"start": 310,
246+
"start": 313,
247247
"end": 329,
248248
"children": [
249249
{

0 commit comments

Comments
 (0)