hypothesis / hypothesis/client

Universal selector on page causes highlighted text to move to new line

Open
#3,265 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Mustache
Stars
730
Forks
224
PR merge metrics
No merged PRs in 30d

Description

Highlighting any text in the main body of https://www.nakivo.com/blog/developing-a-disaster-recovery-policy-a-step-by-step-guide/ causes the highlighted text to be moved into its own line:

Highlight display block

The document has a super-generic CSS rule that sets `display: block` on all elements:

```css
body * {
display: block;
}
```

One way to fix this might be to add something like `all: initial` as the first rule of the `.hypothesis-highlight` selector, which will override any universal selectors on the page.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.