Rename to AdoptStyles
This commit is contained in:
parent
bc9e312bab
commit
f6b0d6d004
2 changed files with 6 additions and 6 deletions
12
index.html
12
index.html
|
@ -1,3 +1,8 @@
|
|||
<script type="module">
|
||||
import AdoptStyles from "/AdoptStyles.js"
|
||||
customElements.define("adopt-styles", AdoptStyles)
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.inline { color: red }
|
||||
@layer foo {
|
||||
|
@ -7,14 +12,9 @@
|
|||
|
||||
<link rel="stylesheet" href="/linked.css">
|
||||
|
||||
<script type="module">
|
||||
import PullStyles from "/PullStyles.js"
|
||||
customElements.define("pull-styles", PullStyles)
|
||||
</script>
|
||||
|
||||
<my-component>
|
||||
<template shadowrootmode="open">
|
||||
<pull-styles adopt="all"></pull-styles>
|
||||
<adopt-styles adopt="all"></adopt-styles>
|
||||
<p class="inline">Inline</p>
|
||||
<p class="linked">Linked</p>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue