W3C home > Mailing lists > Public > www-math@w3.org > January 2015

spec reading: semantics elements and styling

From: Peter Krautzberger <peter.krautzberger@mathjax.org>
Date: Wed, 14 Jan 2015 10:19:11 +0100
Message-ID: <CABqxo8329btAed-JHLJJ0s_g6nwes=PM+CyBV9RP8QV+MbO_rA@mail.gmail.com>
To: "www-math@w3.org" <www-math@w3.org>
Hi,

The spec reads

> The default rendering of a semantics element is the default rendering of
its first child.

(http://www.w3.org/Math/draft-spec/chapter5.html#mixing.semantic.elements)

I'd take this to mean that (by default) the first child is rendered as if
it stood alone. But that seems problematic in an HTML5 context.

On the one hand, Firefox won't render the following mtable construction at
full width

<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
  <semantics>
    <mtable width="100%" mathbackground="red">
      <mtr> <mtd><mi>x</mi></mtd> </mtr>
    </mtable>
    <annotation encoding="application/x-tex">x</annotation>
  </semantics>
</math>

On the other hand, I would expect (in HTML5) that styling the semantics
element (while poor practice) would affect the first child (and in fact it
does in Firefox).

So I'm wondering how to reconcile these two points of view (and what else I
might be missing here).

Best wishes,
Peter.
Received on Wednesday, 14 January 2015 09:19:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 14 January 2015 09:19:38 UTC