Page MenuHomePhabricator

native: Rendering error in overline; the line is too short in Chrome
Open, MediumPublicBUG REPORT

Assigned To
Authored By
Christian1985
Dec 4 2023, 5:22 PM
Referenced Files
F58623971: image.png
Mar 6 2025, 7:08 PM
F58618621: Screenshot 2025-03-06 at 11.28.07.png
Mar 6 2025, 11:04 AM
F58227614: image.png
Jan 19 2025, 5:51 PM
F58037947: Screenshot 2024-12-21 at 14.31.37.png
Dec 21 2024, 1:32 PM
F58037637: image.png
Dec 21 2024, 11:54 AM
F41951671: Screenshot 2024-02-17 at 22.18.51.png
Feb 17 2024, 9:19 PM
F41560266: image.png
Dec 4 2023, 5:22 PM

Description

I'm using Chrome on Ubuntu 22.04.

The line generated by` \overline` is much too short. See the picture:

image.png (198×274 px, 8 KB)

The line above the number is almost unrecognisable.

Maybe this bug is connected to T352609: native: \operatorname effect does not propagate into \widetilde arguments

Details

Event Timeline

Physikerwelt renamed this task from native: Rendering error in overline, the line is too short. to native: Rendering error in overline, the line is too short in Chrome.Jan 27 2024, 2:27 PM
Physikerwelt claimed this task.
Physikerwelt moved this task from Inbox to Blocked: needs help on the Math board.

I double-checked this, the resulting MathML is precisely as the MathML generated by MathJax. With both versions, the line is too short in Google chrome.

It is not clear if the correct utf-8 codepoint is used for overline. https://de.wikipedia.org/wiki/%C3%9Cberstrich

LaTeXML uses &175; which does not work in Chrome. Here, using &oline works, however. See https://github.com/brucemiller/LaTeXML/issues/2317

Change 1002609 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Use U+203E for \overline macro

https://gerrit.wikimedia.org/r/1002609

Change 1002609 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Use U+203E for \overline macro

https://gerrit.wikimedia.org/r/1002609

works now in chrome as well

Screenshot 2024-02-17 at 22.18.51.png (1×2 px, 326 KB)

I think the bug exists again, see https://de.wikipedia.beta.wmflabs.org/wiki/Intbar#Widetilde_&_Overline

I use Ubuntu 24.04 and the latest Chrome version.

image.png (281×478 px, 34 KB)

Physikerwelt lowered the priority of this task from High to Medium.Dec 21 2024, 1:32 PM
Physikerwelt moved this task from Code Review to Needs clarification on the Math board.

I tried to reproduce this with

 Chromium	132.0.6815.0 (Developer Build) (arm64) 
Revision	0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
OS	macOS Version 15.1.1 (Build 24B91)

it generates the same output for MathML and native

<mover><mrow data-mjx-texclass="ORD"><mn>1</mn><mn>4</mn><mn>2</mn><mn>8</mn><mn>5</mn><mn>7</mn></mrow><mo>‾</mo></mover>

which looks as intended.

Screenshot 2024-12-21 at 14.31.37.png (568×720 px, 78 KB)

@Christian1985 please reopen if you still see it.

Ok, I'll try with different computers. What happens if you zoom in and out? For me the line is flickering a bit.

Hi,

nothing will happen if I am zooming in or out. On my system there is also no flickering.

It looks just as wrong on my Android phone.

Physikerwelt added a subscriber: HamidRahkooy.

@HamidRahkooy can you try to reproduce the error?

It looks just as wrong on my Android phone.

@HamidRahkooy can you try to reproduce the error?

Works fine for me in Chrome.

Screenshot 2025-03-06 at 11.28.07.png (928×2 px, 197 KB)

Chrome Version 133.0.6943.142 (Official Build) (arm64)
MacOS 15.3.1 (24D70)

That is strange.
I have now tested it again in Chrome (Version 134.0.6998.35 (Offizieller Build) (64-Bit)) on Ubuntu in incognito mode. It still looks like in the screenshot.
Are any of you able to test the example with a Chrome on Android?

I have an android device at home. Will try tonight.

Does

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

render fine?

The codepen example looks okay

image.png (721×1 px, 118 KB)

(The fraction doesn't look so good because the numerator is quite far away from the fraction bar. But this detail is not relevant here.)

Bugreporter2 renamed this task from native: Rendering error in overline, the line is too short in Chrome to native: Rendering error in overline; the line is too short in Chrome.Oct 11 2025, 11:25 PM
Bugreporter2 updated the task description. (Show Details)