href+mathcolor inconsistency #427
Test file http://monet.nag.co.uk/~dpc/mjlink.html In the HTML/CSS output (or native mathml in firefox) that produces a "red m = red n" with the m being a link to a paragraph at the bottom of the page.
In the SVG output (in all browsers I tried) The mathcolor setting on m is ignored and it comes out blue. (Our actual documentation has 77022 of these so goes very blue in svg mode:-)
The file is
It seems that the CSS used to color the links blue seems to override the explicit attributes on the individual elements within the link. I'm surprised by that, and will have to look into it more.
In the meantime, you could use
to remove the CSS that colors links blue. Note that this will disable all link coloring, not just those with explicit colors. If you want to keep link color for the ones without explicit
but I'm not certain it covers all the bases. I'll have to do more checking. Let me know if you find cases where this doesn't work.
That does not seem to work (Chrome and Firefox). It seems that in
the CSS style is still "stronger" than the SVG attribute. I don't remember exactly what the SVG/CSS specs say, but putting the class on a node higher than the one that has the stroke/fill attribute would work.
I'll add a test
which will essentially be David's one:
=> In testsuite
I also thought I had tried out the class on the
The test should include not only colored text, but also uncolored text (so that you can verify that it is blue). Some of my attempts to fix it lost the blue coloring. It might also be good to test coloring inside of a larger link, e.g.,
What do you think should be the result for
My reading is that the
On the other hand, I think
should be blue, since the outer
I think the original idea from the MathML WG was to implement
Probably people are more likely to expect mathcolor to behave as CSS. However, I don't think we want to bother too much about