::target-text
Limited availability
The ::target-text
pseudo-element allows you to style text highlighted by a URL text fragment such as #:~:text=snippet
.
To learn more, see
::target-text at MDN.
Compatibility
- Chrome 89 Released on 2021-03-02
- Chrome Android 89 Released on 2021-03-02
- Edge 89 Released on 2021-03-04
- Firefox 131 Released on 2024-10-01
- Firefox for Android 131 Released on 2024-10-01
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Baseline availability blocked since October 2024 by Safari (1 months)