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 6636f74 commit 5c5536eCopy full SHA for 5c5536e
documentation/docs/03-template-syntax/17-style.md
@@ -34,8 +34,10 @@ To mark a style as important, use the `|important` modifier:
34
<div style:color|important="red">...</div>
35
```
36
37
-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,
38
+even over `!important` properties:
39
40
```svelte
-<div style="color: blue;" style:color="red">This will be red</div>
41
+<div style:color="red" style="color: blue">This will be red</div>
42
+<div style:color="red" style="color: blue !important">This will still be red</div>
43
0 commit comments