createShadowRoot method
Creates a new shadow root for this shadow host.
Other resources
- Shadow DOM 101 from HTML5Rocks.
- Shadow DOM specification from W3C.
Implementation
@SupportedBrowser(SupportedBrowser.CHROME, '25')
ShadowRoot createShadowRoot() => throw UnsupportedError(
'Shadow DOM is not available outside a browser context.');