mirror of https://github.com/sveltejs/svelte
fix: fix merge style func (#11971)
* fix: fix merge style func * add test, do some drive-by tidying * changeset * lint * lint, simplify * oops, order matters for tests --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/11979/head
parent
c9202a8896
commit
088632b06d
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: apply style directives to element with empty style attribute
|
@ -0,0 +1,7 @@
|
||||
import { ok, test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `
|
||||
<p style="color: red;">red</p>
|
||||
`
|
||||
});
|
@ -0,0 +1 @@
|
||||
<p style:color="red" style={null}>red</p>
|
Loading…
Reference in new issue