Baseline Newly Text fragments
::target-text
The ::target-text pseudo-element allows you to style text highlighted by a URL text fragment such as #:~:text=snippet.
Baseline Status
Newly Available
Since 2024-12-11
First Core Launch
Chrome 89
2021-03-02
Core-3 Stability
1,380d (3.8y)
Last: Safari (2024-12-11)
BCD Keys Mapped
1
Group: Text fragments
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 89 | 2021-03-02 |
| Chrome Android | mobile | 89 | 2021-03-02 |
| Edge | desktop | 89 | 2021-03-04 |
| Firefox | desktop | 131 | 2024-10-01 |
| Firefox for Android | mobile | 131 | 2024-10-01 |
| Safari | desktop | 18.2 | 2024-12-11 |
| Safari on iOS | mobile | 18.2 | 2024-12-11 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.selectors.target-text | CSS | 1,380d (3.8y) |