From 477fcd8fdfaf931b9b1fdeb9d0095e2234d758a7 Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Tue, 10 Dec 2024 14:04:18 +1100 Subject: [PATCH] Scrolling --- v3.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v3.css b/v3.css index 29308e85..39a9e862 100644 --- a/v3.css +++ b/v3.css @@ -503,7 +503,11 @@ figcaption, caption { } pre, svg { display: inline-block; - overflow-x: auto; + /* In the horizontal direction, sometimes people make over-sized figures. + Scrollbars for those is therefore necessary: auto adds them as necessary.. + In the vertical direction, the line-height can combine with the font + asender/descender height to produce scrollbars: hidden avoids that. */ + overflow: auto hidden; } pre { max-width: 100%;