Email or username:

Password:

Forgot your password?
Vadim Makeev

Starting from Firefox 131, released yesterday, text fragments are now cross-browser, aka Baseline (newly available). You can also style the highlighted content with the ::target-text pseudo-element. I’m still getting over the #:~:text= thing, but it might be a good moment to start using it.

developer.mozilla.org/en-US/do

Firefox 131 release notes page on MDN with the “Text fragments are now supported” part of the paragraph highlighted in bright red. The URL of the page contains #:~:text= at the end and the same highlighted text. The Firefox DevTools panel at the bottom is opened on the Style Editor panel and shows the usage of the ::target-text pseudo element: background-color: tomato; color: white.
1 comment
Go Up