Skip to content

Commit 073092c

Browse files
sync svelte docs
1 parent a67e130 commit 073092c

File tree

1 file changed

+4
-2
lines changed
  • apps/svelte.dev/content/docs/svelte/03-template-syntax

1 file changed

+4
-2
lines changed

apps/svelte.dev/content/docs/svelte/03-template-syntax/17-style.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ To mark a style as important, use the `|important` modifier:
3535
<div style:color|important="red">...</div>
3636
```
3737

38-
When `style:` directives are combined with `style` attributes, the directives will take precedence:
38+
When `style:` directives are combined with `style` attributes, the directives will take precedence,
39+
even over `!important` properties:
3940

4041
```svelte
41-
<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>
4244
```

0 commit comments

Comments
 (0)