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

CSS interoperability with text-align #268

Open
dani31415 opened this issue Apr 30, 2019 · 4 comments
Open

CSS interoperability with text-align #268

dani31415 opened this issue Apr 30, 2019 · 4 comments

Comments

@dani31415
Copy link
Contributor

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,

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <mfrac>
        <mn style="text-align:right">1</mn>
        <mn>1000</mn>
    </mfrac>
</math>

with result
Fraction with numerator alignment to the right

@NSoiffer
Copy link
Contributor

NSoiffer commented Apr 30, 2019 via email

@fred-wang
Copy link
Contributor

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).

@fred-wang
Copy link
Contributor

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

@NSoiffer
Copy link
Contributor

NSoiffer commented Jul 5, 2019

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?

@NSoiffer NSoiffer transferred this issue from w3c/mathml Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants