mirror of https://github.com/sveltejs/svelte
implement css: false in main compiler (#153)
parent
2ee46b47e1
commit
85368b929a
@ -0,0 +1,7 @@
|
||||
<p>test</p>
|
||||
|
||||
<style>
|
||||
p {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
css: false
|
||||
},
|
||||
|
||||
test ( assert, component, target, window ) {
|
||||
const [ control, test ] = target.querySelectorAll( 'p' );
|
||||
|
||||
assert.equal( window.getComputedStyle( control ).color, '' );
|
||||
assert.equal( window.getComputedStyle( test ).color, '' );
|
||||
}
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
<p>control</p>
|
||||
<Widget/>
|
||||
|
||||
<script>
|
||||
import Widget from './Widget.html';
|
||||
|
||||
export default {
|
||||
components: { Widget }
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue