W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2018

Re: [csswg-drafts] [css-display] Define how display: contents behaves in MathML.

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 23 Mar 2018 18:51:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-375765693-1521831096-sysbot+gh@w3.org>
> Gecko and WebKit don't create a box for the numerator and so the fraction is rendered as invalid markup 

With it acting as display:none, the fraction is invalid because there's only one argument. With it acting as display:contents, the fraction would *also* be invalid, because there's 4 arguments.

This sort of thing abounds in MathML; every place I saw where I thought display:contents *might* make sense, it would just as often make things invalid, too.  This sort of consideration doesn't apply to HTML's or SVG's rules.

The closest thing we could get to the *intent* of display:contents would be something like "treat it like an unstyled mrow instead", but that's both complicated (and I don't think it'll work everywhere) and more importantly, *not what display:contents does*.

So yeah, absent the WG deciding on something totally different, display:none for everything seems best. ^_^

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2167#issuecomment-375765693 using your GitHub account
Received on Friday, 23 March 2018 18:51:42 UTC

This archive was generated by hypermail 2.3.1 : Friday, 23 March 2018 18:51:48 UTC