mirror of https://github.com/sveltejs/svelte
fix css specificity for child combinator (#5399)
parent
7900e3eafa
commit
46d423d9db
@ -0,0 +1 @@
|
|||||||
|
main.svelte-xyz button.svelte-xyz.svelte-xyz{background-color:red}main.svelte-xyz div.svelte-xyz>button.svelte-xyz{background-color:blue}
|
@ -0,0 +1,14 @@
|
|||||||
|
<style>
|
||||||
|
main button {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
main div > button {
|
||||||
|
background-color: blue;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<main>
|
||||||
|
<div>
|
||||||
|
<button type="submit">Blue</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
Loading…
Reference in new issue