W3C home > Mailing lists > Public > www-math@w3.org > June 2014

Displaystyle and mtable

From: Frédéric WANG <fred.wang@free.fr>
Date: Wed, 11 Jun 2014 09:54:09 +0200
Message-ID: <53980B21.3060605@free.fr>
To: "www-math@w3.org" <www-math@w3.org>
Dear all,

There has been a change in the treatment of displaystyle on mtable in 
Gecko 29, while trying to remove some useless <mstyle> attributes and 
make things compatible with the CSS inheritance.

According to the MathML spec, the displaystyle attribute is compatible 
with the CSS inheritance:

"Some attributes, such as |displaystyle| or |scriptlevel| (explained 
below), are inherited from the surrounding context when they are not 
explicitly set. Specifying such an attribute on an |mstyle| element sets 
the value that will be inherited by its child elements. Unless a child 
element overrides this inherited value, it will pass it on to its 
children, and they will pass it to their children, and so on. But if a 
child element does override it, either by an explicit attribute setting 
or automatically (as is common for |scriptlevel|), the new (overriding) 
value will be passed on to that element's children, and then to their 
children, etc, unless it is again overridden. "

And for mtable, we have

"The |displaystyle| attribute is allowed on the |mtable| element to set 
the inherited value of the attribute. If the attribute is not present, 
the |mtable| element sets |displaystyle| to "false" within the table 

So as I read, the displaystyle is set to "true" on <mstyle> but set back 
to false on <mtable>.

       <mstyle displaystyle="true">

Gecko < 29 and MathJax 2.3 seems to keep displaystyle=true on the 
<munder> element (see attachment). It seems that other TeX-to-MathML 
converters (such as itex2MML or LaTeXML) assume that displaystyle won't 
be reset on <mtable>'s, so aligning on the spec causes a potential 
"regression" here. See also 

Frédéric Wang

Received on Wednesday, 11 June 2014 07:54:42 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:46:50 UTC