Xion/refrag.js — Issue #3: Improved highlight colors
Author: Xion
Created: 2011-12-15 18:06:38+00:00
State: open

Matched text is currently highlighted by changing its background into light yellow and this works reasonably fine, to some extent, on most sites. It would be better, however, if highlighting took the actual text & background color into account and marked the match in a way which is:

* clearly distinct from the surrounding
* fitting with overall theme of the text around the match
* pleasant to one's eyes (no red on black or similar craziness)

For that, we need to extract the pre-highlight style of matched text, and in pure DOM API this doesn't seem trivial. But if jQuery is present (see ticket #1), we could leverage that to our benefit here.