Closed Bug 1965533 Opened 5 months ago Closed 7 days ago

The unit "rem" is not supported in MathML element <mspace> for width, height, or depth

Categories

(Core :: MathML, defect)

Firefox 137
defect

Tracking

()

RESOLVED DUPLICATE of bug 1924672

People

(Reporter: tmke, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0

Steps to reproduce:

Take the example MathML from the MathML Core spec's section on <mspace>, https://www.w3.org/TR/mathml-core/#space-mspace , and replace "em" with "rem":

<math>
  <mn>1</mn>
  <mspace width="1rem"
          style="border-top: 1px solid blue"/> 
  <mfrac>
    <mrow>
      <mn>2</mn>
      <mspace depth="1rem"
              style="border-left: 1px solid blue"/>
    </mrow>
    <mrow>
      <mn>3</mn>
      <mspace height="2rem"
              style="border-left: 1px solid blue"/>
    </mrow>
  </mfrac>
</math>

Actual results:

The width, height, and depth values are not set, as if an invalid value had been supplied.

Expected results:

The spec states

The width, height, depth, if present, must have a value that is a valid <length-percentage>.

If the width attribute is present, valid and not a percentage then that attribute is used as a presentational hint setting the element's width property to the corresponding value.

"1rem" is a valid length, so I would expect the above to work.

Attachment #9486644 - Attachment description: 2025-05-09T18:29:33,881976803+02:00.png → top: with "1em", bottom: with "1rem"

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

This has been fixed in bug 1924672.

Status: UNCONFIRMED → RESOLVED
Closed: 7 days ago
Duplicate of bug: 1924672
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: