Closed Bug 415476 Opened 16 years ago Closed 16 years ago

CSS 2.1 :first-letter pseudo-element and letter-spacing selector

Categories

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

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: firefoxrocks3, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 FireShot/0.32
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 FireShot/0.32

The letter-spacing selector is not applied on the first letter of the element when specified using the CSS pseudo-element :first-letter. This applies to all block-level elements on which the :first-letter element is applied upon.

Reproducible: Always

Steps to Reproduce:
1. View the attached test file.
Actual Results:  
The "T" in the paragraph looks normal like nothing has been applied.

Expected Results:  
The "T" in the paragraph is supposed to be spaced out from the rest of the words/letters because its letter spacing is increased. Look at the example in other browsers such as Opera or Safari.

This happens with Firefox 2.0.0.11 on Windows XP and on Ubuntu Linux. The style is applied on Opera and Safari 3 for Windows.
Attached file Testcase in HTML
This is the effect seen using HTML parsing.
Attached file Testcase in XHTML
This is the effect shown rendering using the XML parser, if that makes a difference.
Do you also see this in a current trunk build (like Firefox 3 beta 2)?

WFM in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2008020204 Minefield/3.0b3pre ID:2008020204

This may have been fixed by bug 220577.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Depends on: 220577
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: