Open Bug 1929800 Opened 7 days ago Updated 6 days ago

The CSS property clip-path for MathML elements is different in Chrome

Categories

(Core :: MathML, defect)

Firefox 131
defect

Tracking

()

UNCONFIRMED

People

(Reporter: wiki, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

Following https://phabricator.wikimedia.org/T376829 I am trying to render the LaTeX macro  \cancel{x} to MathML Core. While the desired rendering can be obtained via
<menclose notation="updiagonalstrike"><mi>y</mi></menclose> this is not part of MathML core and thus not supported by most browsers.

In https://github.com/w3c/mathml-core/issues/245#issuecomment-2410676518 an alternative representation was suggested

https://codepen.io/physikerwelt/pen/wvVEJQK

which works well in Chromium, but not in Firefox.

Actual results:

The MathML is rendered like it would be rendered without the \cancel command. No errors are show in the browser console. When one adds content into the empty mrow, the diagonal line is show after the thing that should be crossed out.

Expected results:

The element should be rendered with a diagonal line on top.

The Bugbug bot thinks this bug should belong to the 'Core::MathML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → MathML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.