w3c / w3c/mathml-core

mstyle mathvariant inheritance and mi

Open
#53 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We've run into this in an example we're testing with:

<mstyle mathvariant="bold-italic">
 <mi>B</mi>
</mstyle>

The user-agent rule mi { text-transform: math-auto } is overriding the rule text-transform: math-bold-italic which it's inheriting from the mstyle.

I'm aware that there will be some changes from MathML3, and from reading https://github.com/mathml-refresh/mathml/issues/1 and https://lists.w3.org/Archives/Public/public-mathml4/2019Mar/0007.html it seems you're aware of this situation already. But I couldn't find a resolution for this specific situation.

If overriding the mathvariant attribute on the mstyle is intentional, that's fine. But if not, it's quite easy to continue to support this syntax by adding

mstyle[mathvariant] mi {
    text-transform: inherit;
}

to the user-agent stylesheet.

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 with the provided mstyle/mathvariant example and review how MathML Core defines inheritance alongside the user-agent rules for mi. Compare the existing behavior with the proposed mstyle[mathvariant] mi rule, then confirm whether the specification or stylesheet should change and verify the resulting rendering.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.