<trump-hat> Web Component
This demo requires a browser with Custom Elements v1 support.
Google Chrome as of version 54 is a good choice.
On earlier versions, this feature was also implemented behind a flag,
like in older Chrome Canary versions,
where one could start Canary from the command line like so:
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-blink-features=CustomElementsV1
If you don’t see a Trump hat, your browser doesn’t support Custom Elements v1 (see the About Notes above).
Changes are reflected in the Trump hat itself and the source code preview above.
<trump-hat> Web Component
on GitHub.