www.office.com - Line spacing is too small
URL: https://www.office.com/launch/word?auth=2
Browser / Version: Firefox 98.0 Operating System: Mac OS X 10.15 Tested Another Browser: Yes Chrome
Problem type: Design is broken Description: Items are overlapped Steps to Reproduce: In Microsoft Word Online, Firefox clumps the lines together while Chrome and Safari have line spacing.
View the screenshot
Browser Configuration
- None
From webcompat.com with ❤️
And here it is on Chrome View the screenshot

Thanks for the report, I was able to reproduce the issue. There seems to be a bit more space between the lines in Chrome compared to Firefox.

Tested with: Browser / Version: Firefox Nightly 100.0a1 (2022-03-15), Firefox Release 98.0.1 Operating System: Mac OS Monterey v.12.1
Moving to Needsdiagnosis for further investigation.
[qa_11/2022]
in Firefox
<span
data-contrast="auto"
style="
font-size: 11pt;
line-height: 20.5042px;
font-family: WordVisi_MSFontService, Calibri, 'Calibri_EmbeddedFont',
'Calibri_MSFontService', sans-serif;
"
xml:lang="EN-US"
class="TextRun"
lang="EN-US"
>
…
</span>
Blink (Edge)
<span
data-contrast="auto"
xml:lang="EN-US"
lang="EN-US"
class="TextRun"
style="
font-size: 11pt;
line-height: 18.3458px;
font-family: WordVisi_MSFontService, Calibri, Calibri_EmbeddedFont,
Calibri_MSFontService, sans-serif;
"
>
…
</span>
The line-height has been dynamically computed and adjusted differently.
There are different places where the line-height is computed but diving into the minified code is quite challenging.
to access the node we need document.querySelector("#WACViewPanel_EditingElement > p > span.TextRun")
To note also that this is inside an iframe.
<iframe
name="WebApplicationFrame"
id="WebApplicationFrame"
src=""
title="Office Online Frame"
width="100%"
height="100%"
marginwidth="0"
marginheight="0"
frameborder="0"
allowfullscreen="true"
allowtransparency="true"
allow="microphone https://USC-word-edit.officeapps.live.com; autoplay https://USC-word-edit.officeapps.live.com; camera https://USC-word-edit.officeapps.live.com; clipboard-read https://USC-word-edit.officeapps.live.com; clipboard-write https://USC-word-edit.officeapps.live.com; keyboard-map https://USC-word-edit.officeapps.live.com;"
style="
inset: 0px;
display: block;
position: absolute;
background-color: transparent;
border: none;
"
></iframe>
I wonder if the CSS width computed by different browsers is at play here.
I contacted them about it.