Skip to content
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

minsize/maxsize in horizontal operators #64

Open
fred-wang opened this issue Oct 9, 2019 · 4 comments
Open

minsize/maxsize in horizontal operators #64

fred-wang opened this issue Oct 9, 2019 · 4 comments
Labels

Comments

@fred-wang
Copy link
Contributor

Currently the core spec only use them for vertical stretching: https://mathml-refresh.github.io/mathml-core/#algorithm-for-stretching-operators-along-the-block-axis
MathML3 says it should https://www.w3.org/TR/MathML3/chapter3.html#id.3.2.5.8.4

WebKit/Blink don't not support minsize/maxsize for horizontal operators. Gecko seems to have code to handle that case but I'm not able to make it work.

Testcase:

<math>
  <mn>1</mn>
  <mo>+</mo>
  <munder>
    <mn>2222222222222</mn>
    <mo maxsize="2em">→</mo>
  </munder>
  <mo>+</mo>
  <munder>
    <mn>3</mn>
    <mo minsize="10em">→</mo>
  </munder>
  <mo>+</mo>
  <mn>4<mn>
</math>
@fourpoints
Copy link

Related? https://bugzilla.mozilla.org/show_bug.cgi?id=1494915

A use case for this is when writing chemical equations to ensure the arrows are of desired width, where overset text is common.

@fred-wang
Copy link
Contributor Author

Related? https://bugzilla.mozilla.org/show_bug.cgi?id=1494915

Seems to be the same bug, yes

@NSoiffer
Copy link
Contributor

The current version of the spec continues to specify rules involving minsize/maxsize for vertical stretching only, which is out of sync with MathML 3.

@fred-wang: If this is the plan for level 1, "needs spec update" label should be removed and (likely) a level 2 label should be added along with a "needs polyfill" label.

I added a "chemistry" label because of the use case noted by @fourpoints.

@NSoiffer NSoiffer transferred this issue from w3c/mathml Jun 29, 2021
@fred-wang
Copy link
Contributor Author

Moved to label 2, since none of the browsers implement or have plan to implement it per initial comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants