W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

Re: [csswg-drafts] [css-display] math/inline-math (#5385)

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Mon, 28 Sep 2020 15:30:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-700089004-1601307031-sysbot+gh@w3.org>
@fantasai wrote:
> And in terms of tests, we need a test for what happens with these display values on non-MathML elements either way

Indeed, and we should probably also move any spec text from the MathML spec to the CSS Display spec about any box tree "fixups" that happens when non-MathML elements are injected into this context.

For the record, here's what Gecko currently does:

Translated into English: each consecutive sequence of inlines or text are wrapped in an anonymous `-moz-mathml-anonymous-block` pseudo box, which is essentially a plain inline-block.  So for example:
let math = document.querySelector("math");
let span = document.createElement("span");

will create a box tree that looks something like this:
Inline(math) <
  ::-moz-mathml-anonymous-block(math) <
    Inline(span) <
  Box(ms)<... details intentionally left out ...>
  ::-moz-mathml-anonymous-block(math) <

which renders as: `ab"X"c`

I think details like this needs to be specced somewhere.

GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5385#issuecomment-700089004 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 28 September 2020 15:30:35 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:17 UTC