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 text-indent, line-height, word-spacing, letter-spacing #140

Closed
fred-wang opened this issue Feb 22, 2019 · 2 comments
Closed

CSS text-indent, line-height, word-spacing, letter-spacing #140

fred-wang opened this issue Feb 22, 2019 · 2 comments

Comments

@fred-wang
Copy link
Contributor

fred-wang commented Feb 22, 2019

The following properties are known to cause spacing issues in MathML (e.g. when inherited from parent containers): text-indent, line-height, word-spacing, letter-spacing

Probably they should be reset in the user agent stylesheet as it is done in Gecko and WebKit.
Some old bugs:
https://bugs.webkit.org/show_bug.cgi?id=106600
https://bugs.webkit.org/show_bug.cgi?id=155433
https://bugzilla.mozilla.org/show_bug.cgi?id=1187673

cc @rwlbuis

"* Inheriting the following properties can cause excessive spacing of
mathematical formulas: text-indent, line-height, word-spacing,
letter-spacing."
original report: https://lists.w3.org/Archives/Public/www-math/2016Jul/0025.html

https://trac.webkit.org/browser/trunk/Source/WebCore/css/mathml.css
https://dxr.mozilla.org/mozilla-central/source/layout/mathml/mathml.css

@fred-wang
Copy link
Contributor Author

consensus from 2020/06/29: reset to initial in UA sheet

moz-v2v-gh referenced this issue in mozilla/gecko-dev Jul 10, 2020
…t values on the <math> root, a=testonly

Automatic update from web-platform-tests
Add mathml test to check default UA sheet values on the <math> root (#24459)

https://github.com/mathml-refresh/mathml/issues/34
w3c/mathml#36
--

wpt-commits: 88c94b95633fbd9e664d9d96da28953a8108881a
wpt-pr: 24459
xeonchen referenced this issue in xeonchen/gecko Jul 10, 2020
…t values on the <math> root, a=testonly

Automatic update from web-platform-tests
Add mathml test to check default UA sheet values on the <math> root (#24459)

https://github.com/mathml-refresh/mathml/issues/34
w3c/mathml#36
--

wpt-commits: 88c94b95633fbd9e664d9d96da28953a8108881a
wpt-pr: 24459
@davidcarlisle davidcarlisle transferred this issue from w3c/mathml Mar 30, 2022
@fred-wang
Copy link
Contributor Author

This is specified in MathML Core and tested by default-properties-on-the-math-root.html

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

1 participant