::target-text
Limited availability
The ::target-text
pseudo-element allows you to style text highlighted by a URL text fragment such as #:~:text=snippet
.
Compatibility
- Chrome 89 Released on 2021-03-02
- Chrome Android 89 Released on 2021-03-02
- Edge 89 Released on 2021-03-04
- Firefox ❌ See bugzil.la/1694053
- Firefox for Android ❌ See bugzil.la/1694053
- Safari ❌ See webkit.org/b/236817
- Safari on iOS ❌ See webkit.org/b/236817