mirror of https://github.com/sveltejs/svelte
fix: correctly handle falsy values of style directives in SSR mode (#11583)
fixes #11044pull/11595/head
parent
a2bc0f5f7d
commit
a0bdac8cd7
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: correctly handle falsy values of style directives in SSR mode
|
@ -0,0 +1,11 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
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