Skip to content

Commit

Permalink
Update mstyle compatibility data (#17043)
Browse files Browse the repository at this point in the history
* Update mstyle compatibility data

* Update data for Chrome, based on info from mathml.global_attribute.

* Update notes for Firefox, taken from Gecko-specific notes of
  https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle

* Remove dir, displaystyle, scriptlevel since they now belong to
  mathml.global_attribute

* Update scriptminsize/scriptsizemultiplier, removed in Firefox 103
  and not part of MathML Core.

* Move chromium & firefox's partial implementations into a separate object.
  • Loading branch information
fred-wang committed Aug 27, 2022
1 parent e5a94da commit 7ddcafb
Showing 1 changed file with 46 additions and 108 deletions.
154 changes: 46 additions & 108 deletions mathml/elements/mstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,48 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/MathML/Element/mstyle",
"spec_url": "https://w3c.github.io/mathml-core/#style-change-mstyle",
"support": {
"chrome": {
"version_added": false,
"notes": "See <a href='https://crbug.com/6606'>bug 6606</a>."
},
"chrome": [
{
"version_added": "88",
"impl_url": "https://crrev.com/c/1908533",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
]
},
{
"version_added": "80",
"partial_implementation": true,
"impl_url": "https://crrev.com/c/1908533",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
],
"notes": "Only basic support with attributes <code>dir</code>, <code>mathbackground</code>, <code>mathcolor</code> and <code>mathsize</code>."
}
],
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "1"
},
"firefox": [
{
"version_added": "6",
"notes": [
"In Firefox 29, accepted attributes have been restricted to those actually used in practice: <code>id</code>, <code>class</code>, <code>style</code>, <code>href</code>, <code>mathcolor</code>, <code>mathbackground</code>, <code>scriptlevel</code>, <code>displaystyle</code>, <code>scriptsizemultiplier</code>, <code>scriptminsize</code>, <code>dir</code>, <code>mathsize</code>, <code>mathvariant</code>, <code>fontfamily</code>, <code>fontweight</code>, <code>fontstyle</code>, <code>fontsize</code>, <code>color</code>, <code>background</code>.",
"In Firefox 103, attributes <code>scriptsizemultiplier</code> and <code>scriptminsize</code> have been removed."
]
},
{
"version_added": "1",
"partial_implementation": true,
"notes": "Attributes <code>bevelled</code>, <code>notation</code>, <code>open</code>, <code>close</code>, <code>separators</code>, <code>accent</code>, <code>accentunder</code>, <code>selection</code>, <code>mathvariant</code> are not supported."
}
],
"firefox_android": "mirror",
"ie": {
"version_added": false
Expand All @@ -37,105 +70,6 @@
"deprecated": false
}
},
"dir": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/MathML/Element/mstyle#attr-dir",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "12"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"displaystyle": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/MathML/Element/mstyle#attr-displaystyle",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "1"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"scriptlevel": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/MathML/Element/mstyle#attr-scriptlevel",
"support": {
"chrome": {
"version_added": false
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "1"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"scriptminsize": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/MathML/Element/mstyle#attr-scriptminsize",
Expand All @@ -146,7 +80,9 @@
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "1"
"version_added": "1",
"version_removed": "103",
"impl_url": "https://bugzil.la/1772697"
},
"firefox_android": "mirror",
"ie": {
Expand Down Expand Up @@ -179,7 +115,9 @@
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "1"
"version_added": "1",
"version_removed": "103",
"impl_url": "https://bugzil.la/1772697"
},
"firefox_android": "mirror",
"ie": {
Expand Down

0 comments on commit 7ddcafb

Please sign in to comment.