Closed
Bug 1377912
Opened 9 years ago
Closed 9 years ago
drop caps overlaps later text in Vox article
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
DUPLICATE
of bug 1376061
People
(Reporter: dholbert, Unassigned)
References
()
Details
Attachments
(3 files)
STR:
1. Visit https://www.vox.com/science-and-health/2017/6/29/15830970/women-health-care-maternal-mortality-rate
2. Scroll down to the first paragraph of the article, and look at the bottom of the drop-caps "K".
ACTUAL RESULTS:
The last line of that paragraph overlaps the drop-caps "K".
EXPECTED RESULTS:
No overlap.
Edge 15, Chrome 55, and Safari 10.1 have no overlap. (The first four lines are all indented to the right of the drop cap character.)
Not sure if this is a float bug or a text bug. Starting this out in Layout:Text.
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Comment 2•9 years ago
|
||
I've seen this in Firefox Nightly on Linux (56.0a1 (2017-07-03) (64-bit)) as well as Firefox 54 release on Windows, so I think it affects all supported Firefox versions on all platforms.
Comment 3•9 years ago
|
||
The relevant drop-cap style in chorus.css includes a margin-bottom of -0.2em:
.p-dropcap.has-dropcap:first-letter,
.p-dropcap.has-dropcap p:first-child:first-letter {
font-family: Helvetica, sans-serif;
font-style: normal;
font-weight: 700;
line-height: 1;
font-size: 5.9em;
color: #4f7177;
display: block;
float: left;
margin: 0 .1em -.2em 0
}
(reformatted for readability). If the negative margin is removed, the overlap no longer happens.
Updated•9 years ago
|
Priority: -- → P3
Comment 4•9 years ago
|
||
The style here is using a negative margin-bottom to remove blank space below the letter that occurs in browsers that don't fit a floating :first-letter box to its content. This aspect of :first-letter layout is known to be non-interoperable. See bug 1376061 comment 1.
| Reporter | ||
Comment 5•7 years ago
|
||
This is no longer reproducible at Vox -- they seem to have done a visual redesign which removed the dropcaps styling entirely.
Here's a screenshot of what the original article looks like now (in both Firefox and Chrome).
| Reporter | ||
Comment 6•6 years ago
|
||
Update: in the Vox article, the drop-cap is back, but now it works correctly -- they've reimplemented it using an explicit <span> to wrap the first letter, rather than using the :first-letter selector. (And I guess that means it's not affected by the issue hinted at in comment 4 -- or perhaps they changed something else which addressed the issue.)
So it seems maybe Vox isn't affected by this anymore. But other publishers are -- e.g. some New York Times articles are, as noted in bug 1376061 comment 7.
You need to log in
before you can comment on or make changes to this bug.
Description
•