Remove support for the deprecated STIXGeneral set
Categories
(Core :: MathML, task, P5)
Tracking
()
People
(Reporter: fwang, Assigned: fwang)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed, site-compat)
User Story
On July 2014, Mozilla 31 was released with support for MathML rendering using the OpenType MATH table. Since the release of Mozilla 41 on September 2015, the "STIX General" fonts have been deprecated for MathML rendering in favor of fonts with an OpenType MATH Table. On December 2016, the STIX consortium released "STIX Two" indicating that "earlier versions of the STIX fonts are deprecated and no longer supported" and urging users to "upgrade to the new versions as soon as possible". As a consequence of this, support for "STIX General" fonts has been removed in Mozilla 54. For the latest recommended math fonts, see [1]. [1] https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts
Attachments
(2 files)
|
17.10 KB,
patch
|
Details | Diff | Splinter Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Assignee | ||
Comment 1•9 years ago
|
||
| Assignee | ||
Comment 2•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Comment 3•9 years ago
|
||
| Assignee | ||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 6•8 years ago
|
||
Updated•8 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 7•6 years ago
|
||
Perhaps a first not controversial step would be to introduce a preference and counter+deprecated warning, so that at least users can be warned that they should upgrade to STIX Two or more generally follow https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts ; and mac users could maybe report this to Apple. Otherwise we'll never be able to clean up the stretchy operator code.
| Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Karl Tomlinson (:karlt) from comment #6)
Comment on attachment 8832899 [details] [diff] [review]
PatchI would like to avoid a significant regression in rendering on Mac when only
OS fonts are installed. I'd like to see the effect this change would have on
the rendering, but I don't have access to a Mac.If you are able to attach screenshots, please, then I can consider whether
the
change is acceptable.
Some time ago, I was discussing with Myles Maxfield about "font-family: math" and he pinged his font team to upgrade to STIX Two: https://webkit.slack.com/archives/CTY7Z24RZ/p1583965391109500 ; that does not mean Apple will actually do it, but let's see... I guess my proposal in comment 7 still makes sense in any case.
| Assignee | ||
Comment 9•3 years ago
|
||
FYI, STIX Two Math is now available in macOS 13 Ventura beta.
Updated•3 years ago
|
| Assignee | ||
Comment 10•2 years ago
|
||
Delan introduced a counter in bug 1630935. I'm checking the telemetry data for OS X and counting the number of doc with the stix general warning with respect to the number of doc with MathML. Below is a summary of the recent metrics:
Beta |mathml|stix |%
115 |13210 |229 |1.73
114 |13880 |442 |3.18
113 |15150 |579 |3.82
112 |13790 |1720 |12.47
111 |14580 |1380 |9.47
110 |20780 |2570 |12.37
109 |15800 |3330 |21.08
108 |14710 |3200 |21.75
107 |14650 |4180 |28.53
106 |14580 |5030 |34.50
105 |14850 |5780 |38.92
104 |15660 |5420 |34.61
103 |16840 |4820 |28.62
102 |20930 |5170 |24.70
101 |17910 |5130 |28.64
100 |17870 |5440 |30.44
Note that macOS 13 Ventura was released with STIX Two (and without STIXGeneral) on 2022/10/24, corresponding to the measurement period of beta 107. After that, the STIXGeneral usage for MathML operator stretching on macOS seems to have go down progressively from 25-35% to 1.73% of doc with MathML.
@jfkthame @emilio : What do you think? Should we consider removing support for the deprecated STIXGeneral set in MathML now? Should we wait more?
Comment 11•2 years ago
|
||
Stephen, do you know what our supported macOS version range is / when will versions previous to macOS 13 be unsupported?
In general, it seems reasonable to do that given it's a percent of all mathML content which is already low compared to total pages. But if we're unsupporting macOS <13 soon enough it might be worth waiting.
Comment 12•2 years ago
|
||
Personally, I'd be a bit hesitant to do this just yet, with macOS 13 still less than a year old (and current Firefox still supporting versions all the way back to 10.15, according to https://www.mozilla.org/en-US/firefox/117.0a1/system-requirements/). But definitely interested to know if we have any clear schedule for unsupporting older versions.
Comment 13•2 years ago
|
||
We do not have a general schedule for dropping support for older versions and this is very much driven by number of users, maintenance overhead of supporting old versions and similar parameters. I agree with :jfkthame that versions before macOS 13 are not expected to be dropped soon.
| Assignee | ||
Comment 14•2 years ago
|
||
(In reply to Frédéric Wang (:fredw) from comment #10)
Delan introduced a counter in bug 1630935. I'm checking the telemetry data for OS X and counting the number of doc with the stix general warning with respect to the number of doc with MathML. Below is a summary of the recent metrics:
I verified the data for OS X again:
Beta |mathml|stix |1%
120 |14750 |0 |0,00 %
119 |13380 |352 |2,63 %
118 |10500 |548 |5,22 %
117 |10190 |0 |0,00 %
116 |11350 |206 |1,81 %
115 |15440 |455 |2,95 %
114 |14400 |453 |3,15 %
113 |15430 |581 |3,77 %
112 |13850 |1740|12,56 %
111 |14720 |1390|9,44 %
| Assignee | ||
Comment 15•1 year ago
|
||
I was trying to check again the public telemetry data, but it seems results for Firefox versions after beta 120 are not available.
From https://firefoxgraphics.github.io/telemetry/#view=mac I see that at least 93% of reported mac versions are 10.13 or higher.
| Assignee | ||
Comment 16•1 year ago
|
||
(In reply to Frédéric Wang (:fredw) from comment #15)
From https://firefoxgraphics.github.io/telemetry/#view=mac I see that at least 93% of reported mac versions are 10.13 or higher.
Please disregard this comment, what we need is macOS 13 or higher, but it seems the vast majority of the users are still at a 10.X version.
Comment 17•1 year ago
|
||
The firefoxgraphics.github.io data includes macOS versions like "10.16", "10.17", etc. Do these exist? I though that the last macOS 10.X was 10.15 Catalina.
perhaps macOS versions 11+ are being erroneously reported as these higher 10.X versions?
| Assignee | ||
Comment 18•1 year ago
|
||
@gregp: mmh, that's a good point.
As I see https://github.com/FirefoxGraphics/telemetry/pull/7 was supposed to remove the empty "macOS 10.8 (Mountain Lion) - Breakdown" pie chart and add one for "macOS 10.15 (Catalina) - Breakdown" but it seems this change has not been merged in https://firefoxgraphics.github.io/telemetry/#view=mac ; and consequently it's even more unlikely that we support macOS versions 11+.
Also OSXNameMap, DarwinVersionToOSX and DarwinVersionToOSX in https://github.com/FirefoxGraphics/telemetry/blob/bb0cc53a61a30acb22b3973f32f1721c572d02bc/www/constants.js only seem to handle "10.X" versions here, although I don't get how we get the results 10.16, 10.17, 10.18 or 10.19
Who is maintaining telemetry these days and could fix that issue?
Comment 19•1 year ago
|
||
Who is maintaining telemetry these days and could fix that issue?
I'm not sure. #gfx:mozilla.org might be a good place to ask.
| Assignee | ||
Comment 20•1 year ago
|
||
(In reply to Gregory Pappas [:gregp] from comment #19)
Who is maintaining telemetry these days and could fix that issue?
I'm not sure. #gfx:mozilla.org might be a good place to ask.
Thanks, I tried but the only reply I got so far was "10.16 is 11, etc." which is what you suggested.
In any case, with this interpretation, the current values would be
macOS 15 (Sequoia) - 0.5%
macOS 14 (Sonoma) - 43.1%
macOS 13 (Ventura) - 14.5%
macOS 12 (Monterey) - 12.5%
macOS 11 (Big Sur) - 6.7%
macOS 10.15 (undefined) - 6.7%
macOS 10.13 (High Sierra) - 6.4%
macOS 10.14 (Mojave) - 3.1%
macOS 10.12 (Sierra) - 2.5%
macOS 10.11 (El Capitan) - 2.0%
macOS 10.10 (Yosemite) - 1.2%
macOS 10.9 (Mavericks) - 0.9%
So there is still a significant amount of macos < 13.
| Assignee | ||
Comment 21•1 year ago
|
||
Comment from emilio at https://phabricator.services.mozilla.com/D219084#7872847:
I checked the use counters and they hover at around 0.00004%. So I think this is worth trying!
| Assignee | ||
Comment 22•8 months ago
|
||
- StaticPrefList.yaml: remove preference, it has been disabled in all platforms since Firefox 134 (bug 1912870) and non-macos platforms since Firefox 83 (bug 1664488).
- nsMathMLChar.cpp: remove dead code.
- semantics-005.html: Use a Web font and a rare stretchy arrow (not in mathfontUnicode.properties) to avoid existing bugs with some local fonts (bugs 1309429, 1648335 and 1931159).
| Assignee | ||
Comment 23•8 months ago
|
||
Updated•7 months ago
|
Comment 24•7 months ago
|
||
Comment 25•7 months ago
|
||
| bugherder | ||
Comment 26•7 months ago
|
||
These prefs are removed:
mathml.stixgeneral_operator_stretching.disabled
Updated•5 months ago
|
Description
•