Adjusted height & depth of elements moved via voffset
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 56
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
The <mpadded> element has a voffset attribute, which enables one to shift the vertical alignment of an element. However, the MathML-Core specification makes no mention of what happens to the height and depth of an element that is so shifted.
In practice, neither Chromium nor Gecko currently changes the height or depth of an element that is shifted via voffset. In MathML 3.0, one could manually adjust the height and depth via attribute adjustments such as height="+6pt". MathML core does not have such a ± adjustment.
Some way is needed to make that adjustment of height and depth. Otherwise, one will see elements impinging on fraction bars, radical bars, and the like.
Currently in Chromium, one can apply CSS padding and that will increase the height or the depth of the element, depending on whether the padding is applied to the top or the bottom of the element. Gecko does not behave this way. So I know of no way to currently write an adjustment to height and depth that will run correctly in both browsers.
Is the padding hack a valid way to address this dilemma? Will it continue to run in future versions of Chromium and perhaps the other browsers? Should this hack be explicitly written into the MathML Core specification?
Or will some other means of height adjustment become part of MathML-Core? Perhaps a return of the ± notation?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the MathML Core rules for and voffset, then compare the Chromium and Gecko behavior described in the issue. A complete outcome should choose and specify an interoperable way to adjust height and depth, including whether CSS padding or ±-style adjustment is normative.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100