mirror of https://github.com/sveltejs/svelte
parent
56afb9c70a
commit
f0bc96dff4
@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
html: '<p style="--border-color: red;"></p>',
|
||||||
|
|
||||||
|
test({ assert, component, target, window }) {
|
||||||
|
component.myColor = 'blue';
|
||||||
|
|
||||||
|
assert.htmlEqual(target.innerHTML, '<p style="--border-color: blue;"></p>');
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
export let myColor = "red";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p style:--border-color={myColor} />
|
||||||
Loading…
Reference in new issue