mirror of https://github.com/sveltejs/svelte
fix: correctly handle falsy values of style directives in SSR mode (#11584)
fixes #11044pull/11594/head
parent
72d493aaa5
commit
8592914fdd
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: correctly handle falsy values of style directives in SSR mode
|
@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<p style="--a: 0;"></p>
|
||||||
|
<p style="--b: false;"></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<p style:--a={0}></p>
|
||||||
|
<p style:--b={false}></p>
|
||||||
|
<p style:--c=""></p>
|
||||||
|
<p style:--d={undefined}></p>
|
||||||
|
<p style:--e={null}></p>
|
Loading…
Reference in new issue