Files
jerryc127 ae09618131 fix(mathjax): cover all block containers for inline formula overflow
Once mjx-container is forced to display: inline, its own max-width and
overflow-x no longer apply to a non-replaced inline box, so the formula
width escapes to the document. The previous rule only covered p and li.

- cover headings (h1-h6) too, otherwise a long inline formula in a
  heading widens the page (measured 395px of horizontal page scroll at a
  420px viewport)
- li becomes a scroll container, which clips its outside-positioned
  ::marker, so switch those items to list-style-position: inside
- fall back to the previous inline-grid when :has() is unsupported,
  since the container rules are then dropped while display: inline still
  applies, which is worse than before
ae09618131 · 2026-11-12 15:58:02 +08:00
History
..
2025-09-09 15:40:08 +08:00
2025-02-16 20:38:17 +08:00
2025-02-16 20:38:17 +08:00
2025-02-16 20:38:17 +08:00
2025-02-16 20:38:17 +08:00
2025-02-16 20:38:17 +08:00
2025-09-09 15:40:08 +08:00
2025-09-09 15:40:08 +08:00