| 1 |
<!doctype html> |
| 2 |
|
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<meta charset="utf-8" /> |
| 6 |
<title><my-element> Demo</title> |
| 7 |
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> |
| 8 |
<script src="../node_modules/lit/polyfill-support.js"></script> |
| 9 |
<script type="module" src="../my-element.js"></script> |
| 10 |
<style> |
| 11 |
p { |
| 12 |
border: solid 1px blue; |
| 13 |
padding: 8px; |
| 14 |
} |
| 15 |
</style> |
| 16 |
</head> |
| 17 |
<body> |
| 18 |
<my-element> |
| 19 |
<p>This is child content</p> |
| 20 |
</my-element> |
| 21 |
</body> |
| 22 |
</html> |