w3c / w3c/mathml

Extend mpadded attribute syntax to be closer to MathML3

Open
#103 10 comments 0 reactions 1 assignee View on GitHub

@davidcarlisle is already working on this.

Since Nov 14, 2024.

need tests
Dominant language
HTML
Stars
82
Forks
23
PR merge metrics
No merged PRs in 30d

Description

In w3c/mathml#81, we agreed that mpadded attributes in MathML Core should only use pseudo-unit with the same vertical/horizontal direction.

Can we simplify it any further? Remove/Deprecate it?

Some thoughts:

  • MathML discourage authors from using mpadded for tweaking or conveying meaning: https://mathml-refresh.github.io/mathml/chapter3.html#presm.warnfinetuning
  • In general, since MathML3 did not clearly specify rendering, implementation are inconsistent and usage is probably unreliable.
  • CSS is more appropriate for this kind of space tuning. I imagine if we better define MathML interactions with out-of-flow position w3c/mathml-core#74, margin/border/padding w3c/mathml#9, vertical-align w3c/mathml-core#273, aspect-ratio etc authors could use these alternatives.
  • mpadded is probably used a lot, though. We would need to get better statistics and analysis of current use cases.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.