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)
Tracking
()
RESOLVED
INVALID
People
(Reporter: masayuki, Unassigned)
Details
(Keywords: qawanted)
Attachments
(1 file)
1.21 KB,
text/html
|
Details |
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.
Comment 1•22 years ago
|
||
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
Reporter | ||
Comment 2•22 years ago
|
||
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.
Comment 3•22 years ago
|
||
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.
Reporter | ||
Comment 4•22 years ago
|
||
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; }
Reporter | ||
Comment 5•22 years ago
|
||
Comment 6•22 years ago
|
||
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...
Reporter | ||
Comment 7•22 years ago
|
||
"before"? Please tell me before bug id.
Comment 8•22 years ago
|
||
bug 2038 is the original relevant bug; there has been lots of repetition of it in various bugs since, but nothing new got said.
Updated•21 years ago
|
Priority: -- → P2
Comment 9•21 years ago
|
||
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.
Description
•