Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix edge case hints mode crash in Firefox
The user can input invalid CSS when customizing the look of hints. Normally, that’s handled by the CSS engine automatically – silently ignoring the invalid parts. However, in Firefox on pages with very strict CSP rules – such as crates.io – the CSS is applied manually. Previsouly, an invalid selector caused `element.matches(selector)` to throw an error, preventing the hints from being rendered at all. With this commit, if a rule has an invalid selector it is ignored completely, just like in regular CSS.
- Loading branch information