From e291b325d79f768e2cb900617e24a9b87ea3a735 Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Sun, 26 Mar 2023 11:04:43 -0400 Subject: [PATCH] Add tests for having slots between former and latter element --- .../expected.css | 1 + .../input.svelte | 14 ++++++++++++++ .../siblings-combinator-slots-between/expected.css | 1 + .../siblings-combinator-slots-between/input.svelte | 11 +++++++++++ 4 files changed, 27 insertions(+) create mode 100644 test/css/samples/general-siblings-combinator-slots-between/expected.css create mode 100644 test/css/samples/general-siblings-combinator-slots-between/input.svelte create mode 100644 test/css/samples/siblings-combinator-slots-between/expected.css create mode 100644 test/css/samples/siblings-combinator-slots-between/input.svelte diff --git a/test/css/samples/general-siblings-combinator-slots-between/expected.css b/test/css/samples/general-siblings-combinator-slots-between/expected.css new file mode 100644 index 0000000000..f365e3dc24 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-slots-between/expected.css @@ -0,0 +1 @@ +h1.svelte-xyz~p.svelte-xyz{color:red} \ No newline at end of file diff --git a/test/css/samples/general-siblings-combinator-slots-between/input.svelte b/test/css/samples/general-siblings-combinator-slots-between/input.svelte new file mode 100644 index 0000000000..e8a7396685 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-slots-between/input.svelte @@ -0,0 +1,14 @@ +

Heading 1

+ + Span 1 + + + Span 2 + +

Paragraph 2

+ + diff --git a/test/css/samples/siblings-combinator-slots-between/expected.css b/test/css/samples/siblings-combinator-slots-between/expected.css new file mode 100644 index 0000000000..d523f1d533 --- /dev/null +++ b/test/css/samples/siblings-combinator-slots-between/expected.css @@ -0,0 +1 @@ +h1.svelte-xyz+span.svelte-xyz{color:red} \ No newline at end of file diff --git a/test/css/samples/siblings-combinator-slots-between/input.svelte b/test/css/samples/siblings-combinator-slots-between/input.svelte new file mode 100644 index 0000000000..36219534fe --- /dev/null +++ b/test/css/samples/siblings-combinator-slots-between/input.svelte @@ -0,0 +1,11 @@ +

test

+ + + +Hello + +