mirror of https://github.com/sveltejs/svelte
parent
fbb6c9fd4e
commit
97184b789c
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
test({ assert, target }) {
|
||||
const div = target.querySelector( 'div' );
|
||||
|
||||
assert.equal( div.style.backgroundImage, 'url(https://example.com/foo.jpg)');
|
||||
assert.equal( div.style.color, 'red' );
|
||||
}
|
||||
};
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let bgImage = 'https://example.com/foo.jpg';
|
||||
let color = 'red';
|
||||
</script>
|
||||
|
||||
<div style="background-image: url('{bgImage}'); color: {color};">{color}</div>
|
Loading…
Reference in new issue