How to override stroke color with parent color in <menclose/>

29 views
Skip to first unread message

Rajesh Kalisetti

unread,
Aug 4, 2016, 10:22:53 AM8/4/16
to MathJax Users
Hi,
        Please look at following html code snippet for sample. Here I written a CSS style colorblock and applied to a div. My intention is to apply this color to all children of this div. But it is fine for all mathml elements inside the div except for <menclose/> tag. Here the strike color is taking black by default. We can change this color by using mathcolor attribute. But here I want to inherit strike color from parent <div/> tag. Please give me an idea on how to achieve this?  Please check the attachment for sample html file.
<style>
    .colorblock {
        colorred;
    }
</style>
 
<div class="colorblock">
    Math Color Test:
    <br />
    <math xmlns="http://www.w3.org/1998/Math/MathML">
        <menclose notation="updiagonalstrike">
            <mi>x</mi>
            <mo>+</mo>
            <mi>y</mi>
        </menclose>
    </math>
</div> 

MathMLSample_menclose.html

Peter Krautzberger

unread,
Aug 4, 2016, 10:42:48 AM8/4/16
to mathja...@googlegroups.com
Hi Rajesh,

Your code works in the CommonHTML output but for HTML-CSS and SVG this is a bug. 


Thanks for reporting!
Peter.


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages