User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 . The height of the <math> block is smaller than the height of some contained elements . The mathbackground attribute on the math block overrides mathbrockground on contained element. See attached xhtml page. Reproducible: Always Steps to Reproduce: warkaround : put an mstyle or row in the math block && style this enclosing row/mstyle instead of styling <math>.
That's because <math> is a sort of CSS box. It's height is computed the CSS way. It is the height of its font box (that is, what you will get if you were to remove all child elements). It is a counter-intuitive property of CSS. Here is an example for illustration. Try this to see: <span style="background-color:#AAAAAA"> Hello <span style="font-size:150%">x<sup>i</sup></span> World </span>
Thus, we should consider the height as normal. what about, the fact that the bgcolor of the math block overrides bgcolors of sub-blcks ?
Created attachment 143245 [details] [diff] [review] fix the "z-index" of the background patch to paint the background like nsInlineFrame does - upshot of bug 36710.
Comment on attachment 143245 [details] [diff] [review] fix the "z-index" of the background Asking r/sr on this MathML patch where an overloaded Paint() method missed out on some earlier changes from bug 36710.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.