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

Update compat data for the mpadded element #17953

Merged
merged 2 commits into from Oct 7, 2022
Merged

Conversation

fred-wang
Copy link
Contributor

Summary

  • State that Chrome and Safari fully supports mpadded attributes as defined in MathML Core and remove old notes for partial implementation.
  • Also remove old note about a bug in Firefox too that is not super important.
  • Add subfeatures to describe non-standard features from legacy MathML implementations and indicate support for Safari and Firefox (see below).
  • Add missing subfeature for the depth attribute.

Test results and supporting details

As explained on MDN [1], MathML Core accepts <length-percentage> for mpadded attributes but some browsers also support more values. More precisely:

  • Chrome parses them as <length-percentage> [2]
  • WebKit parses them as a legacy MathML length [3] [4]
  • Firefox parses them witht the complete legacy syntax [5] [6]

[1] https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mpadded
[2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/mathml/mathml_padded_element.cc;l=15;drc=047c7dc4ee1ce908d7fea38ca063fa2f80f92c77
[3] https://searchfox.org/wubkat/rev/e8e9be7353991aee7df45aa62f0e0148f16e6f9f/Source/WebCore/mathml/MathMLPaddedElement.cpp#51
[4] https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute/Values#legacy_mathml_lengths
[5] https://searchfox.org/mozilla-central/rev/d416a7b827c2d76b12848e355a4e03dde49ece25/layout/mathml/nsMathMLmpaddedFrame.cpp#117
[6] https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mpadded#legacy_syntax

Related issues

mdn/content#21258

- State that Chrome and Safari fully supports mpadded attributes as defined in MathML Core and remove old notes for partial implementation.
- Also remove old note about a bug in Firefox too that is not super important.
- Add subfeatures to describe non-standard features from legacy MathML implementations and indicate support for Safari and Firefox (see below).
- Add missibg subfeature for the depth attribute.

As explained on MDN [1], MathML Core accepts `<length-percentage>` for mpadded attributes but some browsers also support more values. More precisely:

- Chrome parses them as `<length-percentage>` [2]
- WebKit parses them as a legacy MathML length [3] [4]
- Firefox parses them witht the complete legacy syntax [5] [6]

[1] https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mpadded
[2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/mathml/mathml_padded_element.cc;l=15;drc=047c7dc4ee1ce908d7fea38ca063fa2f80f92c77
[3] https://searchfox.org/wubkat/rev/e8e9be7353991aee7df45aa62f0e0148f16e6f9f/Source/WebCore/mathml/MathMLPaddedElement.cpp#51
[4] https://developer.mozilla.org/en-US/docs/Web/MathML/Attribute/Values#legacy_mathml_lengths
[5] https://searchfox.org/mozilla-central/rev/d416a7b827c2d76b12848e355a4e03dde49ece25/layout/mathml/nsMathMLmpaddedFrame.cpp#117
[6] https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mpadded#legacy_syntax
@fred-wang
Copy link
Contributor Author

cc @Elchi3

@github-actions github-actions bot added the data:mathml ➗ Compat data for MathML features. https://developer.mozilla.org/docs/Web/MathML label Oct 7, 2022
@Elchi3 Elchi3 merged commit 7478f15 into mdn:main Oct 7, 2022
@fred-wang fred-wang deleted the mpadded branch October 7, 2022 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:mathml ➗ Compat data for MathML features. https://developer.mozilla.org/docs/Web/MathML
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants