-
Notifications
You must be signed in to change notification settings - Fork 15
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
CSS interoperability with text-align #268
Comments
Yes (about colalign in core). HTML tables used to support something similar
for col and colgroup, but they went away in HTML5 in favor of text-align in
CSS. We should probably start a separate issue for this...
…On Tue, Apr 30, 2019 at 9:07 AM Daniel Marques ***@***.***> wrote:
We are deprecating some MathML attributes in favor of the equivalent ones
in CSS. In particular, the CSS style text-align seems a good substitute for
denomalign and numalign (since the deprecation in w3c/mathml#30
<w3c/mathml#30>). For the same
reasons, it is also a good candidate to replace the columnalign
<https://www.w3.org/TR/REC-MathML/chap3_5.html#sec3.5.1> attribute in
tables.
For example,
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mfrac>
<mn style="text-align:right">1</mn>
<mn>1000</mn>
</mfrac>
</math>
with result
[image: Fraction with numerator alignment to the right]
<https://camo.githubusercontent.com/99c5d6431606cfdadcfc9d3cb8d5ba27529ccbcf/68747470733a2f2f64616e6933313431352e6769746875622e696f2f7075626c69632d696d616765732f6d6174686d6c2d726566726573682f69737375652d303038362d30312e706e67>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/mathml-refresh/mathml/issues/86>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALZM3ARBOU6XMIMAXUKD73PTBVE7ANCNFSM4HJOAGBQ>
.
|
As explained on w3c/mathml#30, CSS text-align has features that don't seem good for MathML (apply to inline-level content, not inherited). @rwlbuis's proposal on that issue seems more aligned with the current implementations. In any case, change like this are unlikely to happen until we clarify the CSS box models (display values, handling of border/margins/padding etc). |
I don't think we want text-align for MathML as it is supposed to apply to inline boxes. Instead, the CSS align module looks to have what is needed here: https://www.w3.org/TR/css-align-3/#intro |
The align module looks promising in terms of features, but what's it's implementation status? caniuse doesn't even list it yet. Also, there has been only one small update in the last year. That could be good sign (it's close to stable) or a bad sign (no interest). Anyone know which way the wind is blowing? |
We are deprecating some MathML attributes in favor of the equivalent ones in CSS. In particular, the CSS style text-align seems a good substitute for denomalign and numalign (since the deprecation in w3c/mathml#30). For the same reasons, it is also a good candidate to replace the columnalign attribute in tables.
For example,
with result
The text was updated successfully, but these errors were encountered: