:host and
::shadow pseudo
selector can be used to style the HTML element inside shadow root.A shadow root can be created using
createShadowRoot() method.In this
demo, “
We will create a custom element and style the HTML present inside shadow DOM”.A
custom element can be referred in 2 ways.Inside its template it can be targeted using
:host pseudo selector and from outside(
document) usin...
Published on December 05, 2014 07:10