shadow DOM
a mechanism to encapsulate our web components. The markup and styles inside web components protect it from external DOM manipulation.
Last updated
Was this helpful?
a mechanism to encapsulate our web components. The markup and styles inside web components protect it from external DOM manipulation.
Last updated
Was this helpful?
⟩ ⟩ ⟩ shadow DOM
regular DOM children of a shadow host are referred to as the “light DOM”.
style from the document does not affect the shadow tree, but CSS inheritance does.
show shadow DOM for built-in elements in browser, 👉 see:
MDN ⟩ ⭐️
Google ⟩
📗
📗 (outdated)
📗 ⭐️ (結論:closed mode 沒什麼用)
📗 - CSSTricks