-
Notifications
You must be signed in to change notification settings - Fork 14
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
min-width for <mpadded> #202
Comments
I have a connected question I'd like to clarify: For example: <math>
<mrow style="min-width:100px; background-color:green;">
<mi>x</mi>
</mrow>
</math> Is that use of CSS to be encouraged or discouraged? Thanks. |
@ronkok: it seems your reason for your proposal is to be able to emulate extensible arrows in LaTeX. Doesn't I also want to note (it may be obvious, sorry) that a CSS min-width won't cause stretching, is just sets the minimum width of the element... at least in the chromium-based browsers that have implemented MathML-core's requirements wrt to CSS. |
I'm not so sure that MathML-Core does this. See Issue #64. It should work in Firefox, since it was written to MathML 3.0, but Firefox currently does not in real life support
My plan was to set a CSS min-width on the upper element of an extensible arrow. That width would then, per my plan, determine the width of the stretched element. |
I currently have a work-around for extensible arrows. It's a horrible kludge, and I would very much like to use a |
Just to tie up some loose ends: I've just done a test and the If/when |
To also address my question for archival:
I think the prevailing sentiment in the last couple of Core meetings was that Chromium's approach to respect CSS rules prescribed over MathML is the correct one going forward, and that it is desirable for CSS properties to successfully apply to any/all MathML Core elements. That said, we concretely discussed the <math>
<mi>a</mi>
<mrow style="min-height:25px"></mrow>
<mo stretchy="true">↑</mo>
<mi>b</mi>
</math>
<math>
<mi>a</mi>
<munder>
<mo>→</mo>
<mrow style="min-width: 25px;"></mrow>
</munder>
<mi>b</mi>
</math> Currently it appears that both of these examples stretch correctly in Chrome, and neither stretches in Firefox, for the reasons @ronkok outlined above. |
Currently in MathML-Core, one can set a
width
on an<mpadded>
element, and I believe, only on an<mpadded>
element. There seems to be no way to set amin-width
on any MathML element,<mpadded>
or otherwise.This makes it difficult to emulate the behavior of LaTeX extensible arrows, all of which have a minimum width.
This issue proposes to add a
min-width
to the specification of the<mpadded>
element.The text was updated successfully, but these errors were encountered: