Closed Bug 1441520 Opened 7 years ago Closed 7 years ago

Using text transform on an inline-block element and its first-letter breaks the width

Categories

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

58 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 385615

People

(Reporter: bakirhusovic, Unassigned)

Details

Attachments

(1 file)

Attached image Capture.PNG
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20180206200532 Steps to reproduce: <!DOCTYPE html> <html> <head> <title> test </title> <style type="text/css"> span { display: inline-block; text-transform: lowercase; background: red; } span:first-letter { text-transform: uppercase; } </style> </head> <body> <span>SOMETHING</span> </body> </html> Actual results: Width of the element was calculated as if text is still uppercase. I have attached the image. Expected results: Width of the element should be calculated using lowercase letters
Component: Untriaged → Layout: Text
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 7 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: