Closed Bug 1433555 Opened 6 years ago Closed 6 years ago

first-letter

Categories

(Core :: Layout: Block and Inline, defect)

58 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 362880
Tracking Status
firefox58 --- affected
firefox59 --- affected
firefox60 --- affected

People

(Reporter: matthieu.dambrune, Unassigned)

Details

Attachments

(2 files)

Attached image first-letter_bug.JPG
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce:

https://codepen.io/frlinw/pen/goVdwO


Actual results:

1) ::first-letter cause extra space on a `display: inline-block` element
2) ::first-letter does not affect `display: inline-flex` elements


Expected results:

1) ::first-letter should not introduce extra space to the element
2) ::first-letter should work on inline-flex elements
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180130223236

I have tested this issue on latest Firefox release 58.0.1, latest Nightly build 60.0a1 and managed to reproduce it. I have accessed the provided link and observed that the "inline-block" element has an extra space.
This issue is also reproducible on older Nightly builds, such as 48.0a1 (2016-03-07).

This issue is not reproducible on Chrome.

I think the suitable component for this issue might be Core:: Layout: Block and Inline.
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Block and Inline
Ever confirmed: true
Product: Firefox → Core
This is related to intrinsic width computation using text-transform: uppercase for the whole thing, not just the first letter.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: