Skip to content

mpadded: prohibit vertical pseudo-units in horizontal attributes #81

Closed

Description

@fred-wang

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:

<mpadded width="200%height">

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

Activity

  1. added
    MathML Core
    css / html5
    compatibility
    on Mar 23, 2019
  2. added
    need resolution
    on May 16, 2019
  3. rwlbuis commented on Jun 3, 2019

    @rwlbuis

    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.

  4. rwlbuis commented on Jun 3, 2019

    @rwlbuis

    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?

  5. rwlbuis commented on Jun 4, 2019

    @rwlbuis

    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

  6. rwlbuis commented on Jun 4, 2019

    @rwlbuis

    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.

  7. fred-wang commented on Jun 10, 2019

    @fred-wang
    Author

    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)

  8. removed
    need resolution
    on Jun 14, 2019
  9. fred-wang commented on Jun 14, 2019

    @fred-wang
    Author

    We agreed to prohibit vertical pseudo-units in horizontal attributes and horizontal pseudo-units in vertical attributes during meeting from 10/06/2019.

  10. added
    need specification update
    need tests
    on Jun 14, 2019
  11. fred-wang commented on Jun 14, 2019

    @fred-wang
    Author

    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

  12. removed
    need specification update
    on Jun 14, 2019
  13. removed
    need tests
    on May 27, 2020
  14. fred-wang commented on May 27, 2020

    @fred-wang
    Author

    tests added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MathML Corecompatibilitycss / html5

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions