Open dani31415 opened 5 years ago
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 notifications@github.com 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 https://github.com/mathml-refresh/mathml/issues/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,
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