Skip to content

SVG output doesn't handle color in style attribute for top-level math element. #990

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

Closed
dpvc opened this issue Jan 3, 2015 · 1 comment
Closed
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Available v2.5
Milestone

Comments

@dpvc
Copy link
Member

dpvc commented Jan 3, 2015

The SVG output doesn't seem to apply the style="color:xyz" when it appears on the top-level <math> element (although other style values are applied). So, for example,

<math style="color:red">
<mi>x</mi>
</math>

doesn't color the result red. This shows up in the style1.html and style2.html tests in MathMLToDisplay/General/GenAttrib/ in the test suite. Note that the color style is applied if it is on an element other than the top-level <math> element. It is probably due to the special casing of how style attributes are inherited.

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Test Available and removed Investigate labels Jan 13, 2015
@dpvc dpvc added this to the MathJax 2.5 milestone Jan 13, 2015
@dpvc
Copy link
Member Author

dpvc commented Jan 13, 2015

It turns out the this is resolved by #1002, so I'm closing it.

@dpvc dpvc closed this as completed Jan 13, 2015
@dpvc dpvc added Merged Merged into develop branch and removed Merged Merged into develop branch labels Jan 13, 2015
@dpvc dpvc added Fixed v2.5 and removed Merged Merged into develop branch labels Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Available v2.5
Projects
None yet
Development

No branches or pull requests

1 participant