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: Wed, 23 Sep 2020 16:59:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-697697234-1600880345-sysbot+gh@w3.org>
> but from an implementation point of view, since these math values are going to allow new combinations and potentially lead to security bugs

I think it's the opposite actually - making some values need special handling is usually what complicates implementations.  It's also harder to spec, and for authors to learn, a bunch of special rules for a _subset_ of a property's values rather than having the property  behave in a uniform way for all its values.

These new math `display` values should apply to all (pseudo-)elements exactly the same as other `display` values.  So, `<math>`  is from a box construction point of view exactly the same as `<div style="display:math">`, and conversely, `<math style="display:block">` is exactly the same as a plain `<div>`.  The UA sheet should have a `math { display: math }` rule that the author can override as they see fit (same as we do for `<ruby>`).

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 September 2020 16:59:08 UTC

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