Closed Bug 1436317 Opened 6 years ago Closed 6 years ago

::first-letter {text-transform: uppercase;} erroneously calculate width of block

Categories

(Core :: Layout, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 362880

People

(Reporter: jeantetg, Unassigned)

Details

Attachments

(1 file)

Attached file testcase.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180206220102

Steps to reproduce:

In the test case attached ::first-letter {text-transform: uppercase;} is affected to the second block.




Actual results:

a white space appears after the text "testcase" in the second block


Expected results:

The first letter is uppercase as expected but this space shouldn't be here. My guess is the size of the block is calculated with the entire block's string as uppercase instead of only the first letter.
Component: Untriaged → Layout
Product: Firefox → Core
Status: UNCONFIRMED → 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: