Closed Bug 453121 Opened 16 years ago Closed 16 years ago

Pseudo element :first-letter is ignored in child of float

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: masa141421356, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-KS; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/20080829063055 Minefield/3.1a2pre first-letter is ignored when it is child element of float. Reproducible: Always Steps to Reproduce: 1.Show testcade 2. 3. Actual Results: first letter should be displayed with "font-size:26px" Expected Results: first letter is not displayed with "font-size:15px" (font size of float)
Attached file testcase
Summary: first-letter is ignored in child of float → Pseudo element :first-letter is ignored in child of float
You apply the :first-letter to a <span> = inline element. However in CSS3 selectors has this: In CSS, the ::first-letter pseudo-element applies to block, list-item, table-cell, table-caption, and inline-block elements. http://www.w3.org/TR/css3-selectors/#first-letter and css2:1 selectors http://www.w3.org/TR/CSS21/selector.html#first-letter if you make your span a block-level element: <p> instead of <span>, or give the span {display:block;}, you will get the expected results.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
this bug is really INVALID. --> VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: