Oliver on twitter asked:
Is there a list somewhere of which HTML elements can and canβt have a shadow DOM?
As it turns out, there is! (Big ...
For further actions, you may consider blocking this person and/or reporting abuse
Hi!, the shadow-dom is amazing, what do you think of implementing it directly in component libraries?... is what I did with orby, by using the
scoped
property the style and the nodes of the rest of the tree are protected.Yep I think it's great when components use shadow dom to encapsulate their styles!
Hey, I think when promoting type extensions it would be nice to mention that this will "forever" require a "polyfill".
Customized Built-In Elements are part of the spec indeed but Webkit e.g. all Apple products will not implement it.
Therefore such elements will "never" run natively on Iphone, Mac or Safari.
Some more details github.com/open-wc/open-wc/issues/...
shadowRoot.activeElement doesn't work in safari. Have you faced this issue?
Hm you may need to use document.activeElement. that will always point at the shadow host. That is by design to preserve encapsulation.