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

Open
pkra opened this Issue Aug 6, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@pkra
Member

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

This comment has been minimized.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment