blob: 349ba3d8b25ad5e884e88e6815fb13cf96495e63 [file] [log] [blame]
<div id=test><span>Text</span></div>
<script>
const shadow = test.attachShadow({mode: 'open'});
shadow.innerHTML = `
<style>
@media (min-width:200px) {
div { color: green }
:host { background-color: lightgrey }
}
@media (max-width:200px) {
::slotted(*) { color: red }
}
</style>
<div><slot></slot></div>
`;
</script>