Page MenuHomePhabricator

Phonos button can change spacing between lines when used in a paragraph
Closed, InvalidPublicBUG REPORT

Description

What is the problem?

Using the Phonos button in a paragraph can change the spacing between the lines (leading?).

BrowserWith PhonosWithout Phonos
Firefox 102
Screenshot 2023-01-10 at 11-34-44 Phonos Natural - Wikipedia the free encyclopedia.png (112×960 px, 48 KB)
Screenshot 2023-01-10 at 11-35-09 Phonos Natural2 - Wikipedia the free encyclopedia.png (112×960 px, 48 KB)
Chromium 108
line-height_leading_with_phonos_chromium108.png (90×1 px, 45 KB)
line-height_leading_without_phonos_chromium108.png (89×1 px, 45 KB)
Safari 16
line-height_leading_with_phonos_safari16.png (70×1 px, 92 KB)
line-height_leading_without_phonos_safari16.png (69×1 px, 88 KB)

All screenshots taken on Vector 2022.

For Chromium and Safari I used the expanded view, as otherwise the line breaks were different with and without Phonos, which made comparison difficult.

Steps to reproduce problem

Article used for testing:

Environment

Browser: Firefox 102, Chromium 108, Safari 16 (on Browserstack)
Wiki(s): https://en.wikipedia.beta.wmflabs.org Phonos 0.1.0 (4323962) 07:25, 10 January 2023.

Event Timeline

I think this is expected, and not likely to have much push back from communities.

Template:IPAc-en on enwiki currently has similar flaws:

Screenshot from 2023-01-12 11-07-59.png (119×891 px, 53 KB)

I think this is expected, and not likely to have much push back from communities.

Template:IPAc-en on enwiki currently has similar flaws:

Screenshot from 2023-01-12 11-07-59.png (119×891 px, 53 KB)

I'm not sure what you mean. What Phonos would replace is not the transcription but the "🔊 listen" part, which I don't think is responsible for the widening of the line. And in my environment, the presence of IPAc-en doesn't affect the spacing at all, presumably because the border-bottom is offset by the line height.

image.png (165×1 px, 51 KB)

Making sure the Phonos button doesn't affect the line spacing (at least in default font size) does strike me as sensible. Ideally, the size of the icon should be proportional to the text (T320820: Phonos speaker icon placement moves on increased/reduced font size).

@dom_walden is this still an issue or can it be closed?

@dom_walden is this still an issue or can it be closed?

I cannot reproduce it when I compared the two URLs from the description side by side, on Firefox and Chromium.

Closing per T326783#8948977. Thanks to whoever fixed this!