mirror of https://github.com/sveltejs/svelte
Merge pull request #2754 from EmilTholin/reset-quote-mark
Set quote_mark to null when closing quote mark is foundpull/2782/head
commit
75a77fea22
@ -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