-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Compatibility info listed for Firefox on the ::highlight() pseudo-element.
What browsers does this problem apply to, if applicable?
Firefox
What did you expect to see?
It is still considered "Partial Support" since text-shadow is not yet compatible, however text-decoration is compatible as of now in v146.0.1.
Did you test this? If so, how?
Spent some time testing it this morning and was able to dynamically highlight various word ("ranges"), and for my use case I was specifically focused on textNodes which were the text inside anchor tags which they themselves were inside a table-tbody-tr-td tag structure. So overall I think a pretty good test. Was able to dynamically set over/underlines, colors, as well as of course background-color like always.
Also I can confirm that text-shadow is still unable to be set via this css highlights mechanic. Setting text-shadow directly via CSS works fine, but attempting to apply it via the ::highlight() API does not work. So the overall compatibility should remain as "Partial support" with just text-decoration being removed from the notes beneath it.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API#css.selectors.highlight
Do you have anything more you want to share?
I have not yet edited any pages myself, and I do not have the time now to look into the proper nomenclature and operating procedures, so hopefully this is suitable as a method of finding someone that make this quick edit. Thanks!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API
MDN metadata
MDN page report details
- Query:
css.selectors.highlight - Report started: 2026-01-02T18:55:17.544Z