Skip to content

Firefox doesn't treat the math output as one thing and thus inserts line breaks if it doesn't fit #253

Open

Description

@tmke8

If I have a long formula on mobile, then it doesn't fit, and I would want the output field to be scrollable. But Firefox inserts line breaks instead.

One way to solve the problem is to wrap everything into an <mrow>, as Temml does. Can I avoid this somehow?

Activity

  1. yoshiyoshyosh commented on Jul 5, 2025

    @yoshiyoshyosh

    white-space: nowrap on the math with overflow-x on the container you want to scroll?

    top: no white-space: nowrap on the math
    bottom: white-space: nowrap on the math. the overall container gets a scrollbar

    both generated from math-core

    Image
  2. added
    CSS
    on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSS

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions