You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Does not highlight text in ::before and ::after css pseudo-elements. #47
The problem is that only the left Read is highlighted.
Expected behavior
All 3 Read is highlighted.
Device info:
operating system: Windows 10
Browser and version: Firefox 138.0.4
Auto Highlight version: 5.3
Additional info
I don't know if this information is helpful, but in Firefox the ability to search/highlight in ::before and ::after pseudo-elements with the built-in ctrl+f search was adden in version 77. This is the bugzilla link: https://bugzilla.mozilla.org/show_bug.cgi?id=1627643 . Hope this helps. :)
Hello,
Sadly, this is currently absolutely impossible :).
The highlighter works by inserting a new HTML elements (styled with color) to the page, replacing the text occurrences.
But before/after are pseudo elements, so they technically not even in the HTML, they are in the CSS, so I can't imagine how it could ever work.
Firefox search highlighter works totally differently with direct access to all aspects of the page.
Activity
Juraj-Masiar commentedon May 25, 2025
Hello,
Sadly, this is currently absolutely impossible :).
The highlighter works by inserting a new HTML elements (styled with color) to the page, replacing the text occurrences.
But before/after are pseudo elements, so they technically not even in the HTML, they are in the CSS, so I can't imagine how it could ever work.
Firefox search highlighter works totally differently with direct access to all aspects of the page.