Skip to content

Commit 1663408

Browse files
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.
1 parent 2d2e879 commit 1663408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ietf/static/css/document_html_txt.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ div:is(.artwork, .sourcecode) pre {
344344
flex: 0 0 content;
345345
margin: 0;
346346
max-width: 72ch;
347-
overflow: auto;
347+
overflow: auto clip;
348348
}
349349
div:is(.artwork, .sourcecode) .pilcrow {
350350
flex: 0 0 1ch;

0 commit comments

Comments
 (0)