Closed Bug 187267 Opened 22 years ago Closed 21 years ago

If UL and OL element has overflow:hidden, list markers are not displayed

Categories

(Core :: Layout, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: masayuki, Unassigned)

Details

(Keywords: qawanted)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20021230
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20021230

If ul and ol element has overflow:hidden;, list marders are not displayed.
Show this test cases.

case1: ol element.
http://bugzilla.mozilla.gr.jp/attachment.cgi?id=1434&action=view
case2: ul element.
http://bugzilla.mozilla.gr.jp/attachment.cgi?id=1435&action=view

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Actual Results:  
list markers are not displayed.

Expected Results:  
list markers should be displayed.
The list items are "list-style-position:outside", so the markers _do_ overflow 
the <ul> or <ol> and it seems to me like hiding them is the right thing to do...
Keywords: qawanted
The list-style-position property applies to "display: list-item" elements.

This should be in the outside of li.
But this is _not_ in the outside of ul or ol.

See my testcase.
They are displayed in the inside of ul or ol when overflow property has visible.

# ul and ol elements has black border, li elements has blue border.
They are inside the <ul> _border_.  But the <ul> has a padding.  And things
overflowing into the padding (like the bullets) should not be shown when
overflow is not visible.
I see. You are right!
List markers are inside of padding area.
So list markers are clipped by overflow property.

But people will have the same misapprehension by this default style sheet.
I think that list items should be positioned by margin of list items.

Now:
ul,ol{
    padding-left:40px;
}
li{
    margin-left:0;
}

Better?:
ul,ol{
    padding-left:1px; /* Don't collapse li margin and ul,ol margins.*/
}
li{
    margin-left:39px;
}
Yeah, we could do that.  It's been brought up before.  But then setting 
background on the <ul> will not paint that background behind the bullets... Not 
to mention that the bullets _will_ be outside the border then and will _still_ 
overflow, so I fail to see how it would help...
"before"?
Please tell me before bug id.
bug 2038 is the original relevant bug; there has been lots of repetition of it 
in various bugs since, but nothing new got said.
Priority: -- → P2
This bug is invalid.  There is no way to position outside markers such that they
won't oveflow.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: