Limited Selectors

:host-context()

The :host-context() CSS pseudo-class selects the containing element of the shadow tree in which it is used if that element or an ancestor matches the provided selector.

Baseline Status
Limited
Missing ≥1 target
First Core Launch
Chrome 54
2016-10-12
Core-3 Stability
Limbo (3,697d (10.1y))
Missing: firefox, safari
BCD Keys Mapped
1
Group: Selectors

Browser Support Timeline

Chrome v54 (2016-10-12) Chrome Android v54 (2016-10-19) Edge v79 (2020-01-15)
Green dot marks the first browser release (2016-10-12); blue dots show subsequent browser launches (+1190d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Chrome desktop 54 2016-10-12
Chrome Android mobile 54 2016-10-19
Edge desktop 79 2020-01-15

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
css.selectors.host-context CSS 3,697d (10.1y) limbo