w3c / w3c/mathml-core

CSS interoperability with vertical-align

Open
#273 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The CSS vertical-align property should work as per specification with MathML (CSS spec). The resolution of this issue is perhaps just related to create some tests and does not affect the MathML specification.

Some examples are

<img height="40" src="https://www.w3.org/html/logo/img/mark-word-icon.png">
<math><mi style="vertical-align:top">24</mi></math>

with result

Top alignment

and

<math>
    <mn>4</mn>
    <mo>-</mo>  
    <mfenced>
        <mrow style="vertical-align:middle">
            <mfrac>
                <mfrac>
                    <mi>x</mi>
                    <mn>2</mn>
                </mfrac>
                <mn>2</mn>
            </mfrac>
        </mrow>
    </mfenced>
</math>

with result

Fractions and vertical alignment

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reading the linked CSS Inline specification section and reproducing the two MathML examples. Identify the existing interoperability test location, if present, and add coverage for top and middle vertical alignment. Done means the tests demonstrate behavior matching the specification for both examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
frontend, testing, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.