list item disappears when switching stylesheet

NEW
Unassigned

Status

()

Core
Layout: Block and Inline
15 years ago
14 years ago

People

(Reporter: Sekundes, Unassigned)

Tracking

(Depends on: 1 bug, {testcase})

Trunk
x86
All
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7a) Gecko/20040108
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7a) Gecko/20040108

list item disappears when switching stylesheet

Reproducible: Always

Steps to Reproduce:
1.Open the testcase.
2.Use style test.
3.The list item disappears.
(Reporter)

Comment 1

15 years ago
Created attachment 138701 [details]
test style
(Reporter)

Comment 2

15 years ago
testcase...
data:text/html;charset=utf-8;base64,PGxpbmsgaHJlZj0iaHR0cDovL2J1Z3ppbGxhLm1vemlsbGEub3JnL2F0dGFjaG1lbnQuY2dpP2lkPTEzODcwMSZhY3Rpb249dmlldyIgcmVsPSJhbHRlcm5hdGUgc3R5bGVzaGVldCIgdGl0bGU9InRlc3QiPg0KPHVsPg0KICA8bGk%2BPGEgaHJlZj0idGVzdC5odG1sIj50ZXN0PC9hPjwvbGk%2BDQo8L3VsPg%3D%3D
(Reporter)

Comment 3

15 years ago
I got same results in http://quadrone.org.
select basic theme and then select any style again.
The Firebird and Thunderbird links are disappeared.

Comment 4

15 years ago
Created attachment 138739 [details]
testcase (javascript version)

Press "Toggle Style".

Comment 5

15 years ago
Confirming using Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.6) Gecko/20040109
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All

Comment 6

15 years ago
Not sure if this is the correct component, but definitly not Browser-General
Assignee: general → nobody
Component: Browser-General → Layout
Keywords: testcase
QA Contact: general → core.layout
So it looks like dynamic changes to list-style-position are not quite happy...
Looking at the code in nsBlockFrame::UpdateBulletPosition
(http://lxr.mozilla.org/seamonkey/source/layout/html/base/src/nsBlockFrame.cpp#1587),
it looks like the bullet and the first item in the first line both get stuffed
into the first line, which seems incorrect when that first item is a block...
Component: Layout → Layout: Block and Inline
QA Contact: core.layout → core.layout.block-and-inline
See also bug 36854, which discusses why what we're doing in the non-dynamic case
for list-style-position:inside is wrong too.
Depends on: 36854
You need to log in before you can comment on or make changes to this bug.