mirror of https://github.com/sveltejs/svelte
parent
ad6bbface0
commit
00324b2d0e
@ -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