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

Define what baseline things align against. #131

Open
bfgeek opened this issue Feb 25, 2019 · 4 comments
Open

Define what baseline things align against. #131

bfgeek opened this issue Feb 25, 2019 · 4 comments

Comments

@bfgeek
Copy link

bfgeek commented Feb 25, 2019

See:
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=6697

Here firefox aligns with the last baseline, and safari aligns with the first.

This needs tests with various combinations of elements. E.g.
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=6698

@bfgeek
Copy link
Author

bfgeek commented Feb 25, 2019

First baseline will probably be easier on implementations as its more common, and more tested.

@fred-wang
Copy link
Contributor

The core spec now explains the baseline for MathML:
https://mathml-refresh.github.io/mathml-core/#box-model

Algorithms are defined relative to the alphabetical baseline (e.g. they are all aligned in mrow). However, maybe it makes sense to define interpretation of the dominant-baseline property need for vertical alignment has been raised several times in #273 or w3c/mathml#103 for example.

@rwlbuis
Copy link
Contributor

rwlbuis commented Oct 14, 2019

Set the inline offset of the child to inline-offset and its block offset such that the baseline of the child is aligned with the baseline. -> define in terms of first baseline set

@fred-wang
Copy link
Contributor

Set the inline offset of the child to inline-offset and its block offset such that the baseline of the child is aligned with the baseline. -> define in terms of first baseline set

This is for mrow, more generally, we should say that MathML "baseline" means "first baseline" and add tests for all constructions.

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

No branches or pull requests

3 participants