Closed Bug 420351 Opened 16 years ago Closed 16 years ago

List item marker takes up room now with list-style-type: none in strict mode

Categories

(Core :: Layout, defect, P1)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: roc)

References

()

Details

(Keywords: regression, testcase)

Attachments

(4 files)

Attached file testcase (strict mode)
Maybe this is intentional, but this is a change in rendering, causing a small layout problem at the mentioned site.
The problem doesn't show in quirks mode.

This regressed between 2008-02-13 and 2008-02-14:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2008-02-13+04&maxdate=2008-02-14+09&cvsroot=%2Fcvsroot
I guess a regression from bug 400813.

Here is the relevant spec text, afaict:
http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-type
http://www.w3.org/TR/css3-lists/#list-content
Attached file testcase (quirks mode)
This is probably a real layout regression we should fix for 1.9. Probably just need to check for empty bullets in nsLineLayout::ReflowFrame's test for empty content.
Flags: blocking1.9?
Assignee: nobody → roc
Flags: blocking1.9? → blocking1.9+
Priority: -- → P1
Attached patch fixSplinter Review
Simple enough. I got tired of hasNoncollapsedContent and changed it to isEmpty (reversing the sense). I also took out the default assignment so compiler warnings are more useful.
Attachment #308359 - Flags: superreview?(dbaron)
Attachment #308359 - Flags: review?(dbaron)
Whiteboard: [needs review]
Comment on attachment 308359 [details] [diff] [review]
fix

r+sr=dbaron
Attachment #308359 - Flags: superreview?(dbaron)
Attachment #308359 - Flags: superreview+
Attachment #308359 - Flags: review?(dbaron)
Attachment #308359 - Flags: review+
checked in
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [needs review]
Flags: in-testsuite+
Backed out because of Linux reftest failures

REFTEST UNEXPECTED FAIL: file:///builds/slave/trunk_centos5/mozilla/layout/reftests/bugs/347348-1.xhtml
REFTEST UNEXPECTED FAIL: file:///builds/slave/trunk_centos5/mozilla/layout/reftests/bugs/347496-1.xhtml
REFTEST UNEXPECTED FAIL: file:///builds/slave/trunk_centos5/mozilla/layout/reftests/bugs/355548-3.xml
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
These failures were because isEmpty is used uninitialized when frameType is null. That happens for MathML frames. Yay cross-platform testing!

Boo to gcc for not giving uninitialized variable warnings with -O0 :-(
Here's the additional fix. I'll reland with this.
Whiteboard: [needs landing]
Relanded
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: