Custom Element to create Shadow DOM in a declarative manner
Check the source of this page. Now, you can simply do:
- Ever wanted declarative syntax for Shadow DOM?
- Scoped CSS without JS magic?
- Confused that `#shadow-root` is used in tutorials and dev tools, but does not work in actual HTML?
- Or just felt jealous, that spec editors can use this syntax and you cannot?
Shadow Content here
Light DOM content here
For more check the Declarative Shadow DOM Spec proposal and README.md