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
  • Issues
  • #279
Closed
Open
Issue created Aug 06, 2012 by Davide P. Cervone@dpvcContributor

Output in scaled foreignObject inside SVG in WebKit doesn't display

If MathJax is rendered inside a <foreignObject> tag inside a <g> with a scaling transformation in an SVG image, then WebKit will not show the math properly (it will not be scaled and is positioned incorrectly, often falling outside the clipping rectangle for the math, so it disappears.

See the discussion forum for details.

Example:

<html>
<head title="Example 1">
  <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
</head>
<body>
  <svg width="300" height="300" xmlns="http://www.w3.org/2000/svg" version="1.1">
    <g transform="scale(2)">
      <foreignObject width="300" height="300">
        <div>\(G^2\)</div>
      </foreignObject>
    </g>
  </svg>
</body>
</html>
Assignee
Assign to
Time tracking