From 1aa292c29146c3961cdc054760eaa13b2e430902 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 22 Nov 2024 09:08:31 -0500 Subject: [PATCH] failing test for part of #14399 --- .../expected.css | 18 ++++++++++++------ .../input.svelte | 9 +++++++-- .../siblings-combinator-slot/expected.css | 12 +++++++++--- .../siblings-combinator-slot/input.svelte | 9 +++++++-- 4 files changed, 35 insertions(+), 13 deletions(-) diff --git a/packages/svelte/tests/css/samples/general-siblings-combinator-slot/expected.css b/packages/svelte/tests/css/samples/general-siblings-combinator-slot/expected.css index 06590583e8e9..35d4cb542b75 100644 --- a/packages/svelte/tests/css/samples/general-siblings-combinator-slot/expected.css +++ b/packages/svelte/tests/css/samples/general-siblings-combinator-slot/expected.css @@ -1,10 +1,16 @@ + .d.svelte-xyz ~ .e:where(.svelte-xyz) { color: green; } .a.svelte-xyz ~ .g:where(.svelte-xyz) { color: green; } + .a.svelte-xyz ~ .b:where(.svelte-xyz) { color: green; } + .b.svelte-xyz ~ .c:where(.svelte-xyz) { color: green; } + .c.svelte-xyz ~ .f:where(.svelte-xyz) { color: green; } + .f.svelte-xyz ~ .g:where(.svelte-xyz) { color: green; } + .b.svelte-xyz ~ .f:where(.svelte-xyz) { color: green; } + .b.svelte-xyz ~ .g:where(.svelte-xyz) { color: green; } + .c.svelte-xyz ~ .b:where(.svelte-xyz) { color: green; } + .f.svelte-xyz ~ .b:where(.svelte-xyz) { color: green; } + .g.svelte-xyz ~ .b:where(.svelte-xyz) { color: green; } /* no match */ - /* (unused) .a ~ .b { color: green; }*/ - /* (unused) .b ~ .c { color: green; }*/ - /* (unused) .c ~ .f { color: green; }*/ - /* (unused) .f ~ .g { color: green; }*/ - /* (unused) .b ~ .f { color: green; }*/ - /* (unused) .b ~ .g { color: green; }*/ + /* (unused) .a ~ .d { color: red; }*/ + /* (unused) .e ~ .f { color: red; }*/ diff --git a/packages/svelte/tests/css/samples/general-siblings-combinator-slot/input.svelte b/packages/svelte/tests/css/samples/general-siblings-combinator-slot/input.svelte index afb3b5226ca4..f257c64ddb3f 100644 --- a/packages/svelte/tests/css/samples/general-siblings-combinator-slot/input.svelte +++ b/packages/svelte/tests/css/samples/general-siblings-combinator-slot/input.svelte @@ -5,14 +5,19 @@
diff --git a/packages/svelte/tests/css/samples/siblings-combinator-slot/expected.css b/packages/svelte/tests/css/samples/siblings-combinator-slot/expected.css index f4c2572bdcef..a49951b47ce9 100644 --- a/packages/svelte/tests/css/samples/siblings-combinator-slot/expected.css +++ b/packages/svelte/tests/css/samples/siblings-combinator-slot/expected.css @@ -1,6 +1,12 @@ + .d.svelte-xyz + .e:where(.svelte-xyz) { color: green; } + .a.svelte-xyz + .b:where(.svelte-xyz) { color: green; } + .a.svelte-xyz + .c:where(.svelte-xyz) { color: green; } + .a.svelte-xyz + .f:where(.svelte-xyz) { color: green; } + .b.svelte-xyz + .c:where(.svelte-xyz) { color: green; } + .c.svelte-xyz + .b:where(.svelte-xyz) { color: green; } + .c.svelte-xyz + .f:where(.svelte-xyz) { color: green; } /* no match */ - /* (unused) .a + .b { color: green; }*/ - /* (unused) .b + .c { color: green; }*/ - /* (unused) .c + .f { color: green; }*/ + .a.svelte-xyz + .d:where(.svelte-xyz) { color: red; } + .d.svelte-xyz + .f:where(.svelte-xyz) { color: red; } diff --git a/packages/svelte/tests/css/samples/siblings-combinator-slot/input.svelte b/packages/svelte/tests/css/samples/siblings-combinator-slot/input.svelte index 630bc2fe9704..b397ab722568 100644 --- a/packages/svelte/tests/css/samples/siblings-combinator-slot/input.svelte +++ b/packages/svelte/tests/css/samples/siblings-combinator-slot/input.svelte @@ -4,11 +4,16 @@