---
id: "host-context"
kind: "web-feature"
canonical: "https://timetostable.com/feature/host-context"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# :host-context() (`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.

- **Group**: Selectors
- **Baseline**: Limited Availability
- **Specification**: https://drafts.csswg.org/css-shadow-1/#host-selector
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 54 | 2016-10-12 |
| Chrome Android | 54 | 2016-10-19 |
| Edge | 79 | 2020-01-15 |

