Summary: Implements the math-style property which indicates whether
MathML equations should render with normal or compact height (this
is similar to TeX's \displaystyle concept). This is already possible
with the MathML's displaystyle attribute but exposing the magic to CSS
provides more flexibility to users. This is already implemented as an
internal -moz-math-display property, so we essentially just need to
rename and expose it.
Platform coverage: All
Devtools bug: N/A: no extra work is required for devtools.
* Safari: considering ( https://bugs.webkit.org/show_bug.cgi?id=216702
), the MathML displaystyle inheritance was implemented via an internal
structure (when WebKit didn't support internal CSS property), this can
be easily rewritten by implementing the CSS math-style property.
* Chrome: shipped behind the MathMLCore flag (patch landed in
the values must be fixed to match the spec.
- Existing tests use Chromium's values and must be fixed to match the
- Most of the effects are specific to MathML layout and tested by
(displaystyle mapping to math-style and
effect of displaystyle on MathML layout)
- Tentative CSS tests are available in
the interaction with the math-level/font-size won't be testable until we
expose -moz-script-level too.
Secure contexts: Like all other CSS selectors these are not restricted
to secure contexts.
Is this feature enabled by default in sandboxed iframes?: Yes