Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Merge requests
  • !2006

Avoid line breaks for inline math in in WebKit. #1982

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Davide P. Cervone requested to merge github/fork/dpvc/issue1982 into develop Jun 06, 2018
  • Overview 1
  • Commits 7
  • Pipelines 0
  • Changes 3

This PR changes the method of determining the em and ex sizes, and the container width so that display is not set to any block-level values for inline mathematics. This is fine for the em and ex sizes, but the new mechanism has a downside for finding the container width: if the inline math is inside a shrink-wrapped element (like a <td>, or an element with display:inline-block) with no display math, then the container width will be the size of the container without the mathematics, rather than the maximum width available to the shrink-wrapped element, as it is now. Fortunately, in-line math does not use the container width except in unusual situations (e.g., when there is an explicit line break in the math), so it should not affect most uses. For those situations where this is a problem, adding an empty display math should resolve the issue (you could put it in a div with height 0px to avoid the extra space it would introduce).

Resolves issue #1982 (closed).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dpvc/issue1982