chrisblakley / Nebula

Nebula is a WordPress theme framework that focuses on enhancing development. The core features of Nebula make it a powerful tool for designing, developing, and analyzing WordPress websites consistently, yet its deliberately uncomplicated code syntax also serves as a learning resource for programmers themselves.
https://nebula.gearside.com
GNU General Public License v3.0
143 stars 36 forks source link

Research the Custom Highlight API for when it becomes available [🟧 awaiting firefox support] #2190

Open chrisblakley opened 2 years ago

chrisblakley commented 2 years ago

Initial implementation ideas for this would be for search results to replace (or extend) the Nebula highlighting function, and it could also assist the Nebula keyword filter function.

https://www.w3.org/TR/css-highlight-api-1/

https://caniuse.com/mdn-api_highlight

chrisblakley commented 9 months ago

More info here: https://developer.mozilla.org/en-US/docs/Web/CSS/::highlight

The example given is way more complicated than this needs to be and actually makes it look more involved than it is.

However, I don't know if I love that this involves JavaScript at all... May just keep the existing Nebula highlighting since it only needs CSS.

chrisblakley commented 9 months ago

https://caniuse.com/mdn-api_highlight

Screen Shot 2024-01-24 at 10 53 16 AM