Closed jccr closed 6 years ago
I noticed that if the style's selector is body
from the outside that gets turned into a "global style" internally with a selector of body, body::after, body::before, body *, body *::after, body *::before
I think this new selector of :not(a):not(hypothesis-highlight)
has a similar effect but I'm not sure.
Do you have any thoughts @danielweck ?
Highlights created using Hypothes.is don't render properly when using the viewer's content themes.
This change makes it so the theme's styles are still applied to the whole of the document, except it excludes two elements, elements and links.