Math scroll guard: one rule for every block that holds math #20

Merged
void merged 1 commit from void/math-scroll-all into main 2026-11-10 06:32:50 +00:00
Member

Extends the guard from article p:has(.katex) / .katex-display to p, li, h1-h6, th, td (:has(.katex)), as one rule; drops the duplicate overflow-x:auto on the ritual-paper .katex-display (the global rule already applies).

Verified (Edge on Starfire, site build, injected unbreakable \sqrt{...} formula of 120 terms in p, li, h2, plus a narrow formula): p scrollW 5909/clientW 1006, li 5909/966, h2 8274/1006 at 1100px; same at 492px (headless minimum); narrow formula and a plain li do not scroll. Page overflow equals the no-math baseline (15 at 492, 56 at 1100, a headless-viewport artifact), so the math adds none. List markers are not drawn by the site styles, so overflow on li clips nothing visible.

Note: ordinary inline math wraps at operators and never scrolls; only unbreakable formulas do.

🤖 Generated with Claude Code

Extends the guard from `article p:has(.katex)` / `.katex-display` to p, li, h1-h6, th, td (`:has(.katex)`), as one rule; drops the duplicate `overflow-x:auto` on the ritual-paper `.katex-display` (the global rule already applies). Verified (Edge on Starfire, site build, injected unbreakable `\sqrt{...}` formula of 120 terms in p, li, h2, plus a narrow formula): p scrollW 5909/clientW 1006, li 5909/966, h2 8274/1006 at 1100px; same at 492px (headless minimum); narrow formula and a plain li do not scroll. Page overflow equals the no-math baseline (15 at 492, 56 at 1100, a headless-viewport artifact), so the math adds none. List markers are not drawn by the site styles, so overflow on li clips nothing visible. Note: ordinary inline math wraps at operators and never scrolls; only unbreakable formulas do. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Math scroll guard: one rule for every block that holds math
All checks were successful
PR Build Check / build (pull_request) Successful in 5m42s
0187ada258
The guard covered only paragraphs and display blocks, so an unbreakable formula in a list item, heading or table cell widened the page. One rule now names p, li, h1-h6, th, td and the display block; the duplicate overflow-x on the ritual-paper .katex-display is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
void merged commit 769f14883c into main 2026-11-10 06:32:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/gamecult-site!20
No description provided.