From c4200dceb31dd8671de4568646e540565527bd5e Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Sat, 25 Mar 2023 17:19:13 -0400 Subject: [PATCH] Add tests for sibling selectors ignoring slots --- .../expected.css | 1 + .../input.svelte | 12 ++++++++++++ .../expected.css | 1 + .../input.svelte | 18 ++++++++++++++++++ .../expected.css | 1 + .../input.svelte | 12 ++++++++++++ .../expected.css | 1 + .../input.svelte | 10 ++++++++++ .../expected.css | 1 + .../input.svelte | 18 ++++++++++++++++++ .../expected.css | 1 + .../input.svelte | 10 ++++++++++ 12 files changed, 86 insertions(+) create mode 100644 test/css/samples/general-siblings-combinator-former-element-in-slot/expected.css create mode 100644 test/css/samples/general-siblings-combinator-former-element-in-slot/input.svelte create mode 100644 test/css/samples/general-siblings-combinator-nested-slots/expected.css create mode 100644 test/css/samples/general-siblings-combinator-nested-slots/input.svelte create mode 100644 test/css/samples/general-siblings-combinator-selects-slot-fallback/expected.css create mode 100644 test/css/samples/general-siblings-combinator-selects-slot-fallback/input.svelte create mode 100644 test/css/samples/siblings-combinator-former-element-in-slot/expected.css create mode 100644 test/css/samples/siblings-combinator-former-element-in-slot/input.svelte create mode 100644 test/css/samples/siblings-combinator-nested-slots/expected.css create mode 100644 test/css/samples/siblings-combinator-nested-slots/input.svelte create mode 100644 test/css/samples/siblings-combinator-selects-slot-fallback/expected.css create mode 100644 test/css/samples/siblings-combinator-selects-slot-fallback/input.svelte diff --git a/test/css/samples/general-siblings-combinator-former-element-in-slot/expected.css b/test/css/samples/general-siblings-combinator-former-element-in-slot/expected.css new file mode 100644 index 0000000000..f365e3dc24 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-former-element-in-slot/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-former-element-in-slot/input.svelte b/test/css/samples/general-siblings-combinator-former-element-in-slot/input.svelte new file mode 100644 index 0000000000..66a8a09796 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-former-element-in-slot/input.svelte @@ -0,0 +1,12 @@ + +

Heading 1

+
+Span 1 +Span 2 +

Paragraph 2

+ + diff --git a/test/css/samples/general-siblings-combinator-nested-slots/expected.css b/test/css/samples/general-siblings-combinator-nested-slots/expected.css new file mode 100644 index 0000000000..f365e3dc24 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-nested-slots/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-nested-slots/input.svelte b/test/css/samples/general-siblings-combinator-nested-slots/input.svelte new file mode 100644 index 0000000000..d820705782 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-nested-slots/input.svelte @@ -0,0 +1,18 @@ + + +

Heading 1

+
+
+Span 1 +Span 2 + + +

Paragraph 2

+
+
+ + diff --git a/test/css/samples/general-siblings-combinator-selects-slot-fallback/expected.css b/test/css/samples/general-siblings-combinator-selects-slot-fallback/expected.css new file mode 100644 index 0000000000..f365e3dc24 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-selects-slot-fallback/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-selects-slot-fallback/input.svelte b/test/css/samples/general-siblings-combinator-selects-slot-fallback/input.svelte new file mode 100644 index 0000000000..61d829d257 --- /dev/null +++ b/test/css/samples/general-siblings-combinator-selects-slot-fallback/input.svelte @@ -0,0 +1,12 @@ +

Heading 1

+Span 1 +Span 2 + +

Paragraph 2

+
+ + diff --git a/test/css/samples/siblings-combinator-former-element-in-slot/expected.css b/test/css/samples/siblings-combinator-former-element-in-slot/expected.css new file mode 100644 index 0000000000..d523f1d533 --- /dev/null +++ b/test/css/samples/siblings-combinator-former-element-in-slot/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-former-element-in-slot/input.svelte b/test/css/samples/siblings-combinator-former-element-in-slot/input.svelte new file mode 100644 index 0000000000..8cbf9bd709 --- /dev/null +++ b/test/css/samples/siblings-combinator-former-element-in-slot/input.svelte @@ -0,0 +1,10 @@ + +

test

+
+Hello + + diff --git a/test/css/samples/siblings-combinator-nested-slots/expected.css b/test/css/samples/siblings-combinator-nested-slots/expected.css new file mode 100644 index 0000000000..d523f1d533 --- /dev/null +++ b/test/css/samples/siblings-combinator-nested-slots/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-nested-slots/input.svelte b/test/css/samples/siblings-combinator-nested-slots/input.svelte new file mode 100644 index 0000000000..cb8cbbbe08 --- /dev/null +++ b/test/css/samples/siblings-combinator-nested-slots/input.svelte @@ -0,0 +1,18 @@ + + + +

test

+
+
+
+ + + Hello + + + + diff --git a/test/css/samples/siblings-combinator-selects-slot-fallback/expected.css b/test/css/samples/siblings-combinator-selects-slot-fallback/expected.css new file mode 100644 index 0000000000..d523f1d533 --- /dev/null +++ b/test/css/samples/siblings-combinator-selects-slot-fallback/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-selects-slot-fallback/input.svelte b/test/css/samples/siblings-combinator-selects-slot-fallback/input.svelte new file mode 100644 index 0000000000..7fa02c8305 --- /dev/null +++ b/test/css/samples/siblings-combinator-selects-slot-fallback/input.svelte @@ -0,0 +1,10 @@ +

test

+ + Hello + + +