Closed
Bug 1233271
Opened 10 years ago
Closed 10 years ago
Floated ::first-letter has incorrect height
Categories
(Core :: Layout: Floats, defect)
Core
Layout: Floats
Tracking
()
RESOLVED
DUPLICATE
of bug 290125
| Tracking | Status | |
|---|---|---|
| firefox46 | --- | affected |
People
(Reporter: mozilla, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
Steps to reproduce:
1. Open http://output.jsbin.com/jotama in Firefox 44.0a2 (2015-12-14)
Actual results:
The height of the 1st red rectangle is less than that of the 2nd red rectangle.
There is no blank red vertical space around the 1st "P".
Expected results:
Both red rectangles should look the same.
There should be some blank red vertical space around both "P"s.
Additional info:
This testcase appears to indicate that there's a bug in the calculation of the height of the ::first-letter pseudo-element when the pseudo-element is floated.
Original reports:
* https://github.com/Fyrd/caniuse/commit/60082f8ab08b993b4f61c0e6ab42f627c738d068#diff-05e7420e4850dc4a32ef5eef4b70da07
* http://stackoverflow.com/questions/33101151/why-does-firefox-remove-space-above-and-below-the-first-letter-when-floating-fi
| Reporter | ||
Comment 1•10 years ago
|
||
Chrome, Safari, and MS Edge all match each other and render the example correctly.
Keywords: testcase
| Reporter | ||
Comment 2•10 years ago
|
||
http://www.w3.org/TR/CSS21/selector.html#first-letter says:
To allow UAs to render a typographically correct drop cap or initial cap, the UA may choose a line-height, width and height based on the shape of the letter, unlike for normal elements.
This has been what we do for a long time (I think since it was more strongly recommended by the spec).
That said, given that no other implementation does, we should probably stop doing so.
I think this is a duplicate of other bugs on the issue.
| Reporter | ||
Comment 4•10 years ago
|
||
So, duplicate of bug 290125 ?
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•