Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mathbackground does not cover the expression's background #137

Closed
pkra opened this issue Aug 6, 2018 · 1 comment
Closed

mathbackground does not cover the expression's background #137

pkra opened this issue Aug 6, 2018 · 1 comment

Comments

@pkra
Copy link
Contributor

pkra commented Aug 6, 2018

For example

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle mathbackground="red">
      <mn>1</mn>
  </mstyle>
</math>

Renders as

image

in mj3-demos, i.e., the background color is not filling the content's background, only a thin part at the bottom.

When I add

mjx-math * {
    background: inherit;
}

it looks ok but I'm not sure if that has side effects.

@dpvc
Copy link
Member

dpvc commented Aug 6, 2018

It looks like the CSS

mjx-mstyle {
  display: inline-block;
}

is missing. I thought these were added automatically for all the node types, but I will check the code to see what is happening.

@dpvc dpvc added the bug label Aug 6, 2018
dpvc added a commit that referenced this issue Feb 7, 2019
Add css for mstyle so bounding box is correct.  #137.
@dpvc dpvc closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants