w3c / w3c/mathml-core

How is inline stretch size constraint determined?

Open
#270 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
56
Forks
20
PR merge metrics
No merged PRs in 30d

Description

How is the inline stretch size constraint (ie. the target width for a horizontally stretchy operator) determined? At https://w3c.github.io/mathml-core/#dfn-inline-stretch-size-constraint, we say "During box layout, optional inline stretch size constraint and block stretch size constraint parameters may be used on embellished operators.". However, I can not find where it says how this parameter is determined, or if (& how) we can affect it. (There is an open issue #64 that suggests minsize/maxsize might be applicable, but resolution has been deferred).

In experiments, I can only see horizontal stretch happening within mover (& friends), but not in mpadded or mtable, for example.
The target application is commutative diagrams, which will appear within an mtable. It would be acceptable to specify an explicit length for the arrows, if they could stretch at all; but it seems perverse to wrap arrows with an extra mover and empty (but wide!) script just to get the arrow length.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the MathML Core definitions for “inline stretch size constraint” and “embellished operator,” then review related issue #64. Compare the specification with the reported behavior in mover, mpadded, and mtable. Done means documenting how the constraint is determined, whether authors can affect it, and how the commutative-diagram case should be handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.