About this page

:host() - CSS | MDN

https://developer.mozilla.org/en-us/docs/web/css/:host()

“The :host() CSS pseudo-class function selects the shadow host of the shadow DOM containing the CSS it is used inside (so you can select a custom element from inside its shadow DOM) — but only if the selector given as the function's parameter matches the shadow host. :host() has no effect when used outside a shadow DOM.” (the page’s own description)

Topic
Technology
Quality
Not rated yet
Language
Not detected yet
Text on page
3,547 characters
Page size
280 kB
Answered
OK (200), HTML
Last read
7 Jul 2025
In our index since
7 Jul 2025
Safe search
Not checked yet
Links to it
Not counted yet

“Not rated yet” and similar notes are shown on purpose: we say what we haven't measured, so the page doesn't look emptier or better than it is.