Skip to content

lspace/rspace/minsize/maxsize should be more explicit about the reference style #208

Closed

Description

@fred-wang

I always understand them relative to the style of the (core) mo, but currently the spec is ambiguous and it could be the style of the embellished operator instead.

<math>
  <mrow style="font-size: 64pt">
    <mn>not-space-like</mn>
    <mrow style="font-size: 16pt">
      <mo lspace="4em" minsize="8em" symmetric="false">(</mo>
      <mspace height="1em" width="1em" style="background: blue"/>
    </mrow>
    <mspace height="1em" width="1em" style="background: green"/>
  </mrow>
</math>

You have two 1em squares one in blue (16pt) and one in green (64pt). Are lspace="4em" and minsize="8em" equal to 4 and 8 times the size of the blue or green square? Gecko, WebKit and Chromium implements the former.

Proposal: relative to the core mo style.

Activity

  1. added
    MathML Core
    need tests
    need resolution
    need specification update
    on Apr 15, 2020
  2. fred-wang commented on Apr 16, 2020

    @fred-wang
    Author

    I updated the spec and wrote a test to web-platform-tests/wpt#22989

    We can change that later if that's really important, but currently it's how it's implemented in all browsers and it's more consistent with CSS where the font-relative value are with respect to the element's font style not to an arbitrary ancestor.

    Non-CSS-aware MathML engine can do the equivalent using the mathsize attribute or using an mfrac embellished op.

  3. removed
    need resolution
    need specification update
    need tests
    on May 22, 2020
  4. fred-wang commented on May 22, 2020

    @fred-wang
    Author

    Closing since we have spec, tests and implementations.

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 Core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions