w3c / w3c/mathml-core

reflowing content inside MathML token elements

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

Nobody has claimed this yet.

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

Description

Sometimes a token element's content can horizontally overflow the current page width, especially when the page is styled with a maximum width. What is the right strategy for reflowing such elements? (especially <mn>)

If the overflowing text node was in regular HTML, one could use the CSS word-break property to induce a break. Currently that property doesn't successfully act on <mn> on either Firefox or Chrome. Here is a codepen demonstrating that:

https://codepen.io/dginev/pen/QWzVZNj

So I am opening an issue to ask:

  • should word-break: break-all; be used in such situations?
  • if not, what is a good mechanism to achieve reflow, specifically when the plain-text content of a token element exceeds the page width.

Context: In a recent discussion of a web resource (namely computational discovery on jupyter ), I encountered an example which deposits an <mn> with 694 binary digits.

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 linked CodePen reproduction and the MathML token-element behavior described in this issue, focusing on the overflowing example. Compare the observed browser behavior with the relevant MathML Core layout and CSS expectations; done means documenting or agreeing on a clear reflow strategy for oversized token text.

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
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.