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

[csswg-drafts] [math] math style (minimizing logical height of an equation) (#5387)

From: Brian Kardell via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Aug 2020 19:53:05 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-672305644-1596484383-sysbot+gh@w3.org>
bkardell has just created a new issue for https://github.com/w3c/csswg-drafts:

== [math] math style (minimizing logical height of an equation) ==
(Part of #5384 - MathML Core related CSS)

In some cases in mathematical rendering it is desirable to minimize the logical height of an equation.  This is generally done by common norms about font-sizing adjustments to parts of the equation, how some operators are drawn, how/where scripts are measured, and how vertical gaps and shifts are applied.  Below is an example of the same equation rendered in two common ways, the one on the left applying the common rules to minimize the logical height, the one on the left, not.

![math with normal and compact math-styles](https://mathml-refresh.github.io/mathml-core/examples/example-math-style.png)

For this purpose, we introduce the `math-style` property with values `normal` (default) and ``compact`.

MathML supported this via an attribute called `displaystyle` which was either the string 'true' or the string 'false' ()the rules and the term were derived from The TeXbook).  [MathML-Core introduces](https://mathml-refresh.github.io/mathml-core/#the-math-style-property) the `math-style` CSS property and defines how it works for rendering and layout. It maps this attribute's values as a presentational hint to the CSS property for reasons of compatibility with widely deployed content and the existing ecosystem of tools, but strongly recommends authors use CSS.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5387 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 3 August 2020 19:53:07 UTC

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