-
Notifications
You must be signed in to change notification settings - Fork 31
Bold text in some scripts not the same size between editing and display elements #130
Copy link
Copy link
Open
Labels
area:browserA bug caused by one or more browser/web rendering engine implementations.A bug caused by one or more browser/web rendering engine implementations.area:coreA bug/feature for the core code-input.js/code-input.css filesA bug/feature for the core code-input.js/code-input.css filesbugSomething isn't workingSomething isn't workingpriority:mediumstatus:waitingWaiting for a response/action by the reporter/a third party.Waiting for a response/action by the reporter/a third party.status:workedaroundA workaround has been sent.A workaround has been sent.
Description
Metadata
Metadata
Assignees
Labels
area:browserA bug caused by one or more browser/web rendering engine implementations.A bug caused by one or more browser/web rendering engine implementations.area:coreA bug/feature for the core code-input.js/code-input.css filesA bug/feature for the core code-input.js/code-input.css filesbugSomething isn't workingSomething isn't workingpriority:mediumstatus:waitingWaiting for a response/action by the reporter/a third party.Waiting for a response/action by the reporter/a third party.status:workedaroundA workaround has been sent.A workaround has been sent.
Steps to reproduce
**like this**.Expected output
The displayed
pre codetext is visibly bold and aligns with the inputtextarea(i.e. selecting text does not misalign with the displayed text).Actual output
The displayed
pre codetext is wider than the inputtextareatext:Scope
This bug is reproduced for me with Devangari and Hebrew scripts, but not with Latin, Han, Arabic or Cyrillic scripts.
I can reproduce this bug with Prism.js or highlight.js.
I can reproduce this bug on Firefox (Gecko) and GNOME Web (WebKit), but not on Chromium (Blink), on EndeavourOS KDE Arch Linux with Hack as the operating system monospace font and the Noto family as the other operating system fonts.