We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67e130 commit 073092cCopy full SHA for 073092c
apps/svelte.dev/content/docs/svelte/03-template-syntax/17-style.md
@@ -35,8 +35,10 @@ To mark a style as important, use the `|important` modifier:
35
<div style:color|important="red">...</div>
36
```
37
38
-When `style:` directives are combined with `style` attributes, the directives will take precedence:
+When `style:` directives are combined with `style` attributes, the directives will take precedence,
39
+even over `!important` properties:
40
41
```svelte
-<div style="color: blue;" style:color="red">This will be red</div>
42
+<div style:color="red" style="color: blue">This will be red</div>
43
+<div style:color="red" style="color: blue !important">This will still be red</div>
44
0 commit comments