mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
913322c0d5
@emotion/stylis compiles top-level `::highlight(name)` rules inside a styled component as a compound selector `.parent::highlight(name)`, which only matches highlights on the editor container element itself. Chrome applies these leniently, but Firefox correctly requires the originating element to contain the highlighted text. Prefixing with `&` forces a descendant combinator so descendant elements containing the highlighted text are matched. Closes #12270