w3c / w3c/mathml-core

mspace and CSS

Open
#59 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css/html5 needs-tests
Dominant language
HTML
Stars
56
Forks
20
PR merge metrics
No merged PRs in 30d

Description

cc @bfgeek @rwlbuis
This is related to CSS issues w3c/mathml#45 w3c/mathml#50 w3c/mathml#49 w3c/mathml-core#273

Rob has implemented the mspace element by mapping (in C++):

CSS width: width attribute value
CSS vertical-align: height attribute value
CSS height: calc(height attribute value+depth attribute value)

This has various consequences which make it different from the current specs and Gecko/WebKit implementations:

(1) One can now specify these CSS property directly on the mspace element and this will change its rendering and override the attribute values. The spec instead says they are ignored: https://mathml-refresh.github.io/mathml-core/#css-styling

(2) For mspace attributes, percentages are interpreted relative to the sizes of a block container. The spec instead says they are treated as 0: https://mathml-refresh.github.io/mathml-core/#space-mspace (this is consistent with MathML3 where the default size is 0x0)

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 comparing the C++ mspace mapping described here with the MathML Core sections on CSS styling and space-mspace, then review the linked W3C issues and Gecko/WebKit behavior. Done requires a decided and documented resolution for CSS overrides and percentage handling, but this issue names no repository files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
frontend, web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.