web component - Does IOS Safari support Shadow DOM? -
my application able render shadow dom, inspector cannot display shadow root. can me out on this?
it depends on shadow dom mean—shadow dom v0 or shadow dom v1.
see http://caniuse.com/#feat=shadowdomv1 , http://caniuse.com/#feat=shadowdom
no version of safari supports shadow dom v0. far ios safari, version 10.2+ support shadow dom v1 following limitation:
certain css selectors not work (
:host > .local-child
) , styling slotted content (::slotted
) buggy.
as far differences between shadow dom v0 , v1, see https://hayato.io/2016/shadowdomv1/
about how see shadow root in webkit/safari inspector, there’s button need click show shadow roots; looks this:
and in inspector ui, it’s in toolbar on right below tabs. turns blue when activated:
Comments
Post a Comment