forked from sveltejs/svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Excluding CSS type element selectors closes sveltejs#9320 closes sveltejs#8587
- Loading branch information
1 parent
b59387b
commit fcdc02e
Showing
15 changed files
with
118 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/svelte/tests/css/samples/nested-css-adjacent-combinator/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
button.svelte-xyz { | ||
color: red; | ||
|
||
+ .abc.svelte-xyz { | ||
color: purple; | ||
} | ||
|
||
color: black; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/svelte/tests/css/samples/nested-css-adjacent-combinator/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<button> | ||
<div class="foo"/> | ||
</button> | ||
<div class="abc"> | ||
|
||
</div> | ||
<style> | ||
button { | ||
color: red; | ||
+ .abc { | ||
color: purple; | ||
} | ||
color: black; | ||
} | ||
</style> |
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
packages/svelte/tests/css/samples/nested-css-child-combinator/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
button.svelte-xyz { | ||
color: red; | ||
|
||
> .abc.svelte-xyz { | ||
color: purple; | ||
} | ||
|
||
color: black; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/svelte/tests/css/samples/nested-css-child-combinator/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<button> | ||
<div class="abc"/> | ||
<div class="bar"> | ||
<div class="abc"/> | ||
</div> | ||
</button> | ||
<style> | ||
button { | ||
color: red; | ||
> .abc { | ||
color: purple; | ||
} | ||
color: black; | ||
} | ||
</style> |
9 changes: 9 additions & 0 deletions
9
packages/svelte/tests/css/samples/nested-css-descendant-combinator/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
button.svelte-xyz { | ||
color: red; | ||
|
||
.hello.svelte-xyz { | ||
color: pink; | ||
} | ||
|
||
color: black; | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/svelte/tests/css/samples/nested-css-descendant-combinator/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<button> | ||
<div class="bar"> | ||
<div class="hello"/> | ||
</div> | ||
</button> | ||
<style> | ||
button { | ||
color: red; | ||
.hello { | ||
color: pink; | ||
} | ||
color: black; | ||
} | ||
</style> |
4 changes: 3 additions & 1 deletion
4
packages/svelte/tests/css/samples/unknown-at-rule-with-following-rules/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/svelte/tests/css/samples/unknown-at-rule/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
div.svelte-xyz { | ||
@apply --funky-div; | ||
/* DISABLED THIS FOR CSS NESTING */ | ||
/* @apply --funky-div; */ | ||
color: red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters