The two shadow-piercing combinators have been deprecated as stated in https://www.chromestatus.com/features/6750456638341120
Then what's the substitude for achieving the same thing, or this shadow-piercing feature has been completely abandoned?
Both APIs ::ng-deep and /deep/ are deprecated and will eventually be removed in the future.
In order to do this, you add /deep/ to the CSS selector. So in the example shown, html /deep/ [self-end] is selecting all elements under the html (top level) element that have the self-end attribute, including those buried inside web components' shadow DOMs roots.
::shadow
and /deep/
were removed for breaking encapsulation.
The substitutes are:
:host-context
. Read here: http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-201/ If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With