In some browsers (IE11, Chromium-based browsers) the marked text in search results are unreadable with forced colour modes when the background is black because the text colour for <mark> elements is set to black. This is especially present in Windows High Contrast Mode (HCM).
This commit fixes this by re-asserting that the marked text should be the same colour as the surrounding text.
We also have to set background-color: Canvas, because in Firefox background-color: transparent is also ignored (unlike in IE11, Chromiums).
In some browsers (IE11, Chromium-based browsers) the marked text in search results are unreadable with forced colour modes when the background is black because the text colour for
<mark>
elements is set to black. This is especially present in Windows High Contrast Mode (HCM).This commit fixes this by re-asserting that the marked text should be the same colour as the surrounding text.
We also have to set
background-color: Canvas
, because in Firefoxbackground-color: transparent
is also ignored (unlike in IE11, Chromiums).Screenshots