Align mathvariant implementation on MathML Core
Categories
(Core :: MathML, enhancement)
Tracking
()
People
(Reporter: fredw, Assigned: fredw)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
It's now restricted to the mi element and to value mathvariant="normal":
https://w3c.github.io/mathml-core/#the-mathvariant-attribute
Additionally, it relies on the text-transform: math-auto property to implement automatic italicization on single-char mi.
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
In MathML Core, the mathvariant attribute is now restricted to the mi
element and to value "normal". Some related WPT tests were updated in
[1]. This commit moves other tests assuming full mathvariant support
into our internal tests. It also tweaks some existing tests to only
rely on MathML Core features.
- mathvariant-basic-transforms-with-default-font.html: This test assumes support for italic, bold and bold-italic mathvariants so move it to internal tests.
- mathvariant-case-sensitivity.html: This one tests all mathvariant values, so move it to internal tests.
- mathvariant-double-struck-font-style-font-weight.html: This test assumes support for double-struck mathvariant so move it to internal tests.
- Other generated mathvariant-*.html tests for each value (other than "normal") are also moved to internal tests.
- direction.html: Remove use of mathvariant="bold" since this test is actually testing the dir attribute.
- presentational-hints-001.html: Verify that local author style for text-transform wins over presentation hints for mathvariant. Tweak it to use value "normal" on the mi element and text-transform: uppercase.
- presentational-hints-002.html: This is testing dynamic setting of mathvariant. Tweak it to use value "normal" on the mi element.
Comment 5•2 years ago
|
||
bugherder |
Comment 7•2 years ago
|
||
bugherder |
Comment 8•2 years ago
•
|
||
Backout merged to central.
Comment 11•2 years ago
|
||
Looks like it was backed out because the commit message wasn't in the correct format and then re-landed with that fixed.
Assignee | ||
Comment 12•2 years ago
|
||
Thanks. OK, I see that it is merged indeed: https://searchfox.org/mozilla-central/rev/dd2fe65d792943365a03fa996cdf9766829575b6/testing/web-platform/tests/mathml/tools/mathvariant-transforms.py#179
However, this seemed to have confused the WPT sync: https://github.com/web-platform-tests/wpt/blob/c241dc28634b9caf4f759a0547f76d02fa6aea26/mathml/tools/mathvariant-transforms.py#L197
I'll try to fix that...
Assignee | ||
Comment 13•2 years ago
|
||
Reopening since there is still one patch to land.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•1 year ago
|
Comment 15•1 year ago
|
||
Assignee | ||
Comment 17•1 year ago
|
||
Thanks, it seems it's failing with non-unified build. let's try again: https://treeherder.mozilla.org/jobs?repo=try&revision=d200a97aa91281fb724a8ad799ed7cb093db41b8
Comment 18•1 year ago
|
||
Comment 19•1 year ago
|
||
Backed out for causing mochitest failures in browser_mathml.js
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | accessible/tests/browser/mac/browser_mathml.js | AXMathRootRadicand value has correct text - Got "<U+01D465>", expected "x"
Assignee | ||
Comment 20•1 year ago
|
||
OK trying again with the fix for mac: https://treeherder.mozilla.org/jobs?repo=try&revision=7f49fe1b1c0e70041327ecefabfa461300398d84
Comment 21•1 year ago
|
||
Comment 22•1 year ago
|
||
bugherder |
Comment 23•1 year ago
|
||
Is this something we wanted to call out in the Fx117 relnotes?
Updated•1 year ago
|
Assignee | ||
Comment 24•1 year ago
|
||
Flag is currently only true on nightly, so we don't need relnotes yet I believe.
Assignee | ||
Comment 26•1 year ago
|
||
(In reply to Frédéric Wang (:fredw) from comment #24)
Flag is currently only true on nightly, so we don't need relnotes yet I believe.
I opened bug 1845461 to prepare turning on the flag in beta/release.
Assignee | ||
Comment 27•1 year ago
|
||
Comment 28•1 year ago
|
||
Comment 29•1 year ago
|
||
bugherder |
Description
•