mstyle mathvariant inheritance and mi
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
- 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 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