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
Browser Support Releases
| Browser | Type | Version | Release 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 Key | Area | Core-3 TTA |
|---|---|---|
| css.selectors.host-context | CSS | 3,697d (10.1y) limbo |