mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-12-02 20:55:08 +08:00
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