You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mpadded: prohibit vertical pseudo-units in horizontal attributes #81
MathML CoreIssues affecting the MathML Core specificationcompatibilityIssues affecting backward compatibilitycss / html5Issues related to CSS or HTML5 interoperability
This is causing issue for calculating intrinsic width. I propose to add a restriction and to disallow vertical pseudo-units (height, voffset, depth) in horizontal attributes (lspace, width). Probably worth adding in #55 too
AP: contact Brian Kardell about this. Since I don't think he can be referenced here directly, I'll ping him internally through the Igalia infrastructure.
Brian, I briefly looked into the above case where width depends on height. I thought of CSS calc, it can use vw/vh, but that is not quite the same. Can you think of some way to do this that would make the mpadded pseudo units unneeded?
Note that aspect-ratio would not know about height/depth attributes/concepts as specified for mpadded, it would just know about content width and height.
These are the possible non-length values that can be generated by itex2MML or TeXZilla:
lspace="-100%width" (\mathllap)
lspace="-50%width" (\mathclap)
height="+[LENGTH][UNIT]" (\mathraisebox)
depth="+[LENGTH][UNIT]" (\mathraisebox)
depth="depth" (\mathraisebox)
We agreed to prohibit vertical pseudo-units in horizontal attributes and horizontal pseudo-units in vertical attributes during meeting from 10/06/2019.
MathML CoreIssues affecting the MathML Core specificationcompatibilityIssues affecting backward compatibilitycss / html5Issues related to CSS or HTML5 interoperability
Activity
rwlbuis commentedon Jun 3, 2019
AP: contact Brian Kardell about this. Since I don't think he can be referenced here directly, I'll ping him internally through the Igalia infrastructure.
rwlbuis commentedon Jun 3, 2019
Brian, I briefly looked into the above case where width depends on height. I thought of CSS calc, it can use vw/vh, but that is not quite the same. Can you think of some way to do this that would make the mpadded pseudo units unneeded?
rwlbuis commentedon Jun 4, 2019
After discussing with Brian, he mentioned the upcoming aspect-ratio CSS property should fix the "set width using height" and "set height using width" problems:
https://www.smashingmagazine.com/2019/03/aspect-ratio-unit-css/
https://drafts.csswg.org/css-sizing-4/#ratios
rwlbuis commentedon Jun 4, 2019
Note that aspect-ratio would not know about height/depth attributes/concepts as specified for mpadded, it would just know about content width and height.
fred-wang commentedon Jun 10, 2019
cc @distler
These are the possible non-length values that can be generated by itex2MML or TeXZilla:
lspace="-100%width" (\mathllap)
lspace="-50%width" (\mathclap)
height="+[LENGTH][UNIT]" (\mathraisebox)
depth="+[LENGTH][UNIT]" (\mathraisebox)
depth="depth" (\mathraisebox)
fred-wang commentedon Jun 14, 2019
We agreed to prohibit vertical pseudo-units in horizontal attributes and horizontal pseudo-units in vertical attributes during meeting from 10/06/2019.
fred-wang commentedon Jun 14, 2019
The core spec no longer refers to MathML 3 for the mpadded syntax and pseudo-units have been restricted:
https://mathml-refresh.github.io/mathml-core/#adjust-space-around-content-mpadded
mpadded: verify allow pseudo-units relying on orthogonal metrics are …
mpadded: verify allow pseudo-units relying on orthogonal metrics are …
fred-wang commentedon May 27, 2020
tests added
Bug 1641248 [wpt PR 23796] - mpadded: verify allow pseudo-units relyi…
Bug 1641248 [wpt PR 23796] - mpadded: verify allow pseudo-units relyi…
Bug 1641248 [wpt PR 23796] - mpadded: verify allow pseudo-units relyi…