moving from https://github.com/dlibby-/highlight/issues/13
@Reinmar as FYI
As I understand, HighlightRange#priority is needed to control which highlight is rendered above which. Since we have other highlight pseudo-elements like ::selection or :spelling-error, could we prioritize our highlight range above those?
In other words – do the UA's highlight pseud-elements have defined priorities?
Crazy idea – couldn't z-index be used for that instead of priorities?
moving from https://github.com/dlibby-/highlight/issues/13
@Reinmar as FYI
As I understand,
HighlightRange#priorityis needed to control which highlight is rendered above which. Since we have other highlight pseudo-elements like::selectionor:spelling-error, could we prioritize our highlight range above those?In other words – do the UA's highlight pseud-elements have defined priorities?
Crazy idea – couldn't
z-indexbe used for that instead of priorities?