0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
svelte/test/css/samples/omit-scoping-attribute-attribute-selector-equals-dynamic/input.svelte
2019-03-15 23:12:54 -04:00

14 lines
192 B
Svelte

<script>
export let dynamic;
</script>
<div>
<p data-foo='{dynamic}'>this is styled</p>
<p data-foo='baz'>this is unstyled</p>
</div>
<style>
[data-foo='bar'] {
color: red;
}
</style>