Closed
Bug 286385
Opened 20 years ago
Closed 20 years ago
:first-letter should not recognize image as letter
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: uruviel, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050315 Firefox/1.0+ (bangbang023) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050315 Firefox/1.0+ (bangbang023) When the first element in the element is an image firefox recognizes it as :first-letter and thus not applying :first-letter to an actual letter. Reproducible: Always
| Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Probably not true because Opera 8.0 Beta 3 also shows this behaviour.
Comment 3•20 years ago
|
||
Comment 4•20 years ago
|
||
The text I meant to include with the above attachment was: The description isn't quite accurate. Rather, when the first thing in a paragraph (or whatever) is a block level element, then nothing matches :first-letter.
Comment 6•20 years ago
|
||
No, this is not bug 23701. It looks like this part of first-letter behavior may have changed from CSS2 to CSS2.1... Ian, is the first testcase correct? That is, should the first actual text letter (_after_ the image) be styled?
Comment 7•20 years ago
|
||
Um. Good question. Filed CSS2.1 post-CR issue 153. Please remain in the holding pattern, we'll get back to you shortly.
Whiteboard: WG
Comment 8•20 years ago
|
||
Resolution: We are going to add at the start of the first paragraph of 5.12.2: The :first-letter pseudo-element must select the first letter of the first line of a block, if it is not preceded by any other content (such as images or inline tables) on its line.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: WG
Comment 9•20 years ago
|
||
In that case, this bug is invalid; not sure why you confirmed it.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Comment 10•20 years ago
|
||
bz: Sorry I read the initial description as saying we did match :first-letter to a leading IMG, and didn't check for myself.
You need to log in
before you can comment on or make changes to this bug.
Description
•