mirror of https://github.com/sveltejs/svelte
Merge pull request #660 from sveltejs/gh-658
put attribute selector before pseudo-class selectorpull/663/head
commit
02e11f51cd
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
cascade: false
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
|
||||
span[svelte-583610229]::after {
|
||||
content: 'i am a pseudo-element';
|
||||
}
|
||||
|
||||
span[svelte-583610229]:first-child {
|
||||
color: red;
|
||||
}
|
||||
|
||||
span[svelte-583610229]:last-child::after {
|
||||
color: blue;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<span></span>
|
||||
|
||||
<style>
|
||||
span::after {
|
||||
content: 'i am a pseudo-element';
|
||||
}
|
||||
|
||||
span:first-child {
|
||||
color: red;
|
||||
}
|
||||
|
||||
span:last-child::after {
|
||||
color: blue;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue