web-dev
Shadow DOM
Shadow DOM is a browser API that allows you to attach a hidden, encapsulated DOM tree to an element, isolating its styles and markup from the rest of the page. This means CSS defined inside a Shadow DOM won't leak out, and external styles won't bleed in. It's the core technology behind Web Components and is used by frameworks to achieve true style encapsulation without CSS naming conventions or tooling.
#web-dev