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:

webkit inspector shadow-dom button

and in inspector ui, it’s in toolbar on right below tabs. turns blue when activated:

enter image description here


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -