Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set overflow-y to clip for pre (#8047)
Browsers treat an overflow: auto directive as a request to make an element scrollable, even if the element does not need it. This results in scrolling being confined to that element sometimes, such as when a document is scrolled using a mouse wheel if the document scrolls the pointer into that element. The result is that scrolling can be "trapped" on an element that doesn't really need to scroll. This disables vertical scrolling for those pre elements that might trap scrolling in this way.
- Loading branch information