-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mpadded: prohibit vertical pseudo-units in horizontal attributes #81
Comments
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? |
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: |
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. |
cc @distler These are the possible non-length values that can be generated by itex2MML or TeXZilla: |
We agreed to prohibit vertical pseudo-units in horizontal attributes and horizontal pseudo-units in vertical attributes during meeting from 10/06/2019. |
The core spec no longer refers to MathML 3 for the mpadded syntax and pseudo-units have been restricted: |
tests added |
…ng on orthogonal metrics are …, a=testonly Automatic update from web-platform-tests mpadded: verify allow pseudo-units relying on orthogonal metrics are forbidden (#23796) See w3c/mathml#81 -- wpt-commits: ccdf5417be20f26de1ab65e7bd19384bf0efceab wpt-pr: 23796
…ng on orthogonal metrics are …, a=testonly Automatic update from web-platform-tests mpadded: verify allow pseudo-units relying on orthogonal metrics are forbidden (#23796) See w3c/mathml#81 -- wpt-commits: ccdf5417be20f26de1ab65e7bd19384bf0efceab wpt-pr: 23796
cc @rwlbuis, @emilio
mpadded support pseudo-units https://mathml-refresh.github.io/mathml/chapter3.html#presm.mpaddedatt which allows width to depend on vertical metrics like this:
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
The text was updated successfully, but these errors were encountered: