<span class="mw-page-title-main">Lwoverflow</span>
Fabrice P. Lauss𝕪’s ℤoniferous Web

lwoverflow

lwoverflow is a script, made with Claude, that opens every page of the wiki in a headless Chrome at a ladder of viewport widths and names the ones that push the page sideways. It exists because the "the text is flushed against the edge when I Ctrl+wheel" bug came back three times, and it came back because nobody could see it: the page looks perfectly ordinary until the zoom crosses one particular threshold, which differs from page to page.

What it is measuring, and why that is the whole bug

The column is 781px and centred with margin: 0 auto. Auto margins centre a box inside its containing block, which is the window, and they know nothing about the document's scrollable area. So the moment anything anywhere on the page reaches past the window—a picture with a hard pixel width, a table that will not shrink, a bare URL, a map, a <pre>—the page gains a horizontal scrollbar, and all of that extra width lies on the right, because in a left-to-right page there is no scrolling to the left of the origin. Scroll sideways by one pixel and the still-perfectly-centred column slides left while the overhanging thing plants itself against the right edge. A Ctrl+wheel step performs exactly that scroll, since zoom keeps its anchor under the pointer rather than its scroll origin.

So it is not a centring bug at all. The invariant to hold is: at every viewport width, nothing may extend the document's horizontal scrollable area. lwoverflow checks that invariant, page by page, and the skin's Horizontal containment section (3.10.0) is what makes it true.

Zoom is a divider on the CSS viewport, which is why the tool works in viewport widths rather than percentages: 175% in a half-screen window on the 2560 monitor is a 731px CSS viewport. The default ladder runs 1463, 1280, 1097, 1024, 900, 800, 731, 640, 560, 500.

The measurement is el.scrollWidth > el.clientWidth on every box whose overflow-x is visible, plus the box's own right edge against the initial containing block—not where the elements are. That distinction is what made 3.9.0 declare the wiki clean while the LaTeX page was spilling 263px: a long line inside a <pre> runs out of the box and drags the document behind it while the box itself never moves.

Usage

lwoverflow                      every content page, default width ladder
lwoverflow LaTeX Castles        just these pages
lwoverflow -f pages.txt         titles from a file, one per line
lwoverflow -w 731,500           only these CSS viewport widths
lwoverflow -j report.jsonl      also write the raw measurements
lwoverflow -c extra.css         inject a stylesheet first (to try a fix)
lwoverflow -v                   name the offending element, not just the page
lwoverflow --online             probe laussy.org instead of localhost

Exit status is 1 if any page overflows, so it can guard a pushcode. It needs python3-websockets and google-chrome, and it drives Chrome over CDP, so nothing is typed and no window opens.

-c is how the 3.10.0 fix was chosen: candidate stylesheets were run against the 136 failing pages before any of them was written into the skin, which is also how the obvious-looking cure for wide tables (display: block; width: fit-content; overflow-x: auto, so a table too wide to squeeze scrolls inside itself) was caught and dropped — a block box's fit-content is not a table's own shrink-to-fit width, and 38 of the wiki's 132 tables changed width or moved sideways under it.

What it found (September 2026)

A sweep of all 2122 content pages at a 731px viewport found 136 of them scrolling sideways, and nearly always for the same reason. skin.json registers skins.laussywiki.styles as a SkinModule with no features key, so MediaWiki's own content.media styles never reach the page, so core's .mw-file-element { max-width: 100% } does not exist on this wiki and nothing capped a picture that was not inside a thumb frame. 283 images on the wiki are sized in hard pixels at 700px or more, and everything over 739px—the width of the text column—was hanging out of the box. The rest were wide tables, YouTube iframes written 730px or 760px wide, Leaflet maps with a pixel width in a style attribute, one 1344px bare URL, and MathJax's hidden accessible MathML laying itself out at full size (up to 5409px) where its own stylesheet was missing from the bundle.

After 3.10.0 the same sweep reports none: 0 of 2122 pages at 731px, and 0 over the whole ladder on the 172 riskiest pages (the 136 that used to fail plus every page with a table). Nothing else moved either: of 414 pictures on 60 random image pages, none changed size at the normal working width, and of the wiki's 132 tables exactly one did—the 750px one on Fabrice's CV, which had been overhanging the column by 11px.

Versions

  • v°1.0.0 (6 September (2026)) — first version, written with Claude alongside the skin 3.10.0 fix it was built to verify.
  • v°1.0.1 (6 September (2026)) — a progress line on stderr, since a full ladder is 21220 page loads and the run was otherwise silent for an hour.
  • v°1.0.2 (6 September (2026)) — --online is held to two browsers whatever -p says. laussy.org is behind Cloudflare on a shared host with a per-IP process cap, and eight browsers walking two thousand pages is precisely the shape of thing that took the site to 500s in August.