Closed Bug 1418042 Opened 9 years ago Closed 9 years ago

some large capital letters are overlapping onto text on theverge.com

Categories

(Core :: Layout: Text and Fonts, defect)

57 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1376061

People

(Reporter: billdillensrevenge, Unassigned)

Details

Attachments

(1 file)

Attached image vergecapitaloverlap.png —
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171112125346 Steps to reproduce: using Firefox 57 on Windows 10 v1703, Windows system scaling is 175%. On some articles on theverge.com, the large stylized capital letters at the beginning of some paragraphs are overlapping onto text. Here is an example URL https://www.theverge.com/2017/11/16/16658466/microsoft-surface-book-2-review screenshot attached showing what's happening. Chrome and Edge do not have this issue
I can reproduce the issue on Firefox 57 for macOS with no zoom.
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Text
Ever confirmed: true
Product: Firefox → Core
I don't think this is a regression. The non-interoperability of this aspect of first-letter styling is a known issue (explicitly recognized in the spec, even). It's a result of gecko handling the metrics of the floating first-letter differently from webkit/blink/edge; this, combined with the site's CSS which has a negative margin-bottom on the floating letters, results in the overlap here. Removing the negative margin-bottom on the ::first-letter style would fix it. See bug 1376061 comment 1 for more detail.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE

(In reply to Will from comment #0)

Here is an example URL
https://www.theverge.com/2017/11/16/16658466/microsoft-surface-book-2-review

FWIW, this article no longer tries to do any drop-caps styling (in Firefox or Chrome). Presumably theverge.com did a visual redesign at some point.

I did find another recent theverge.com article with dropcaps styling:
https://www.theverge.com/2019/5/9/18538194/google-duplex-ai-restaurants-experiences-review-robocalls
...but the dropcaps styling looks nice now and matches Chrome's rendering.

That google-duplex-ai-restaurants-experiences-review-robocalls article looks good in a build from 2017-11-16, too (the day this bug was filed).

So it seems The Verge must've come up with a new set of styles for their drop-caps effect, which happens to works better in Firefox (including in builds from back when this bug was filed).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: