Closed
Bug 277686
Opened 21 years ago
Closed 21 years ago
[FIX]Bug in :target when combined with :first-letter and text-transform
Categories
(Core :: Layout: Block and Inline, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta1
People
(Reporter: _bleach, Assigned: bzbarsky)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
1.18 KB,
text/html
|
Details | |
3.62 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
The URL above has a full description and demonstration of the bug. When an
element, e.g. H1, has :first-letter and text-transform applied to it, it
functions normally.
However, when a child element is styled via the :target pseudo-class applied to
that element, the parent element loses its :first-letter styling, and the
ordering of the text within the parent element is incorrect.
I have not verified if this behavior extends beyond text-transform with
:first-letter and :target with a child element.
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
Confirming bug, 2001-01-06-05 trunk Linux. In a debug build I see:
###!!! ASSERTION: prev sibling not in line list: 'Not Reached', file
nsBlockFrame.cpp, line 5014
Assignee: firefox → nobody
Severity: minor → normal
Status: UNCONFIRMED → NEW
Component: General → Layout: Block and Inline
Ever confirmed: true
Keywords: testcase
OS: Windows 2000 → All
Product: Firefox → Core
QA Contact: general → layout.block-and-inline
Version: 1.0 Branch → Trunk
![]() |
Assignee | |
Comment 3•21 years ago
|
||
The basic problem is that ContentInserted() uses the prevSibling to decide
where to insert, and RemoveLetterFrames will sometimes remove (and destroy) the
prevSibling. So we end up inserting at the front of the frame list instead of
in the right spot. Just regetting the prevSibling after RemoveLetterFrames
helps.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #173095 -
Flags: superreview?(dbaron)
Attachment #173095 -
Flags: review?(dbaron)
![]() |
Assignee | |
Updated•21 years ago
|
Priority: -- → P2
Summary: Bug in :target when combined with :first-letter and text-transform → [FIX]Bug in :target when combined with :first-letter and text-transform
Target Milestone: --- → mozilla1.8beta
Attachment #173095 -
Flags: superreview?(dbaron)
Attachment #173095 -
Flags: superreview+
Attachment #173095 -
Flags: review?(dbaron)
Attachment #173095 -
Flags: review+
![]() |
Assignee | |
Comment 4•21 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•