Closed Bug 783180 Opened 12 years ago Closed 6 years ago

Letter-spacing incorrectly applies to zero width no-break spaces (zwnbsp)

Categories

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

14 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 253143

People

(Reporter: matt, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

542 bytes, text/html
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347

Steps to reproduce:

CSS letter-spacing applied to text that includes zero width no-break spaces (nobrs) also incorrectly affects the nobrs. No other browser exhibits this behaviour.

Test case: http://jsfiddle.net/stowball/bRwnJ/


Actual results:

The nobrs at the beginning of the h1 are included in the letter-spacing, shifting the entire h1 to the left


Expected results:

The nobrs should not be affected by letter-spacing
I discovered this bug on YouTube, so it looks pretty bad that Firefox fails on such a major website. Link: http://www.youtube.com/watch?v=f1PNQwHZuJc
Attached file Testcase
There is an old bug about zero width characters similar to yours, see bug 253143.
Component: Untriaged → Layout: Text
Keywords: testcase
Product: Firefox → Core
Summary: Letter-spacing incorrectly applies to zero width no-break spaces → Letter-spacing incorrectly applies to zero width no-break spaces (zwnbsp)
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: