Open
Bug 57882
Opened 24 years ago
Updated 2 years ago
List markers (bullets) render inside adjacent float edge (implement float-displace property)
Categories
(Core :: Layout: Floats, defect, P3)
Core
Layout: Floats
Tracking
()
NEW
Future
People
(Reporter: ewv, Unassigned)
References
()
Details
(4 keywords, Whiteboard: [Hixie-P2])
Attachments
(4 files)
In this page there are three images and a bunch of text (including an ordered
list) that appear to share a <TD> element. The numbering for the ordered list
ends up superimposed on the images.
Comment 1•24 years ago
|
||
Seeing in WinNT as well.
The problem also appears for unordered lists.
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
Looked for dup but could not find one.
Marking NEW, OS ALL, changing summary because this rendering problem is for both
ordered and unordered lists.
I see described results in win build 2000102920.
It seems like Mozilla renders the content of each list item up against the table
cell edge. Then renders the list numbers (or bullets) to the left of the list
item content. This of course means that it now looks like it is inside the table.
Comment 4•24 years ago
|
||
Really changing summary. Sorry for the SPAM!
Old summary:Ordered list goes too far to left
Summary: Ordered list goes too far to left → Ordered and Unordered list bullets render inside previous table edge
Comment 5•24 years ago
|
||
GRRRRRRRRR -moz-float-edge strikes again!
yep, we'll have to take care of this post NS6 RTM. Marking future.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Reporter | ||
Updated•24 years ago
|
Target Milestone: Future → mozilla1.0
Updated•24 years ago
|
Keywords: mozilla1.0
Comment 8•23 years ago
|
||
Is this going to be looked at any time soon?
Comment 9•23 years ago
|
||
Unlikely. It's not a priority for most of the people currently working on layout.
Keywords: css3
Whiteboard: [Hixie-P2]
Comment 10•23 years ago
|
||
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
Comment 11•23 years ago
|
||
*** Bug 112232 has been marked as a duplicate of this bug. ***
Comment 12•23 years ago
|
||
*** Bug 113521 has been marked as a duplicate of this bug. ***
Comment 13•23 years ago
|
||
*** Bug 117179 has been marked as a duplicate of this bug. ***
Comment 14•23 years ago
|
||
*** Bug 104900 has been marked as a duplicate of this bug. ***
Comment 15•23 years ago
|
||
*** Bug 112913 has been marked as a duplicate of this bug. ***
Comment 16•23 years ago
|
||
*** Bug 118174 has been marked as a duplicate of this bug. ***
Comment 17•23 years ago
|
||
*** Bug 65473 has been marked as a duplicate of this bug. ***
Comment 18•23 years ago
|
||
*** Bug 122033 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 20•23 years ago
|
||
Isn't this an html4 bug rather than all these css keywords? The testcase uses no
css.
Comment 21•23 years ago
|
||
No. Nothing in the html4 spec says that our behavior is wrong, since HTML 4
doesn't describe layout.
Anyway, this is just a regression of bug 802. (I feel like I've said the same
thing on 2 or 3 other bugs, but I can't find them.)
Comment 22•23 years ago
|
||
*** Bug 60593 has been marked as a duplicate of this bug. ***
Comment 23•23 years ago
|
||
Moving to Moz1.1. Engineers are overloaded with higher priority bugs.
Target Milestone: mozilla1.0 → mozilla1.1
Comment 24•23 years ago
|
||
*** Bug 128425 has been marked as a duplicate of this bug. ***
Comment 25•23 years ago
|
||
*** Bug 131683 has been marked as a duplicate of this bug. ***
Comment 26•23 years ago
|
||
*** Bug 131861 has been marked as a duplicate of this bug. ***
Comment 27•23 years ago
|
||
*** Bug 129965 has been marked as a duplicate of this bug. ***
Comment 28•23 years ago
|
||
*** Bug 137883 has been marked as a duplicate of this bug. ***
Comment 29•23 years ago
|
||
No images in this test case.
Comment 30•22 years ago
|
||
Seeing so many duplicates, I'm surprised that this is "not a priority". :-)
Anyway, I have a question. In the following HTML, the second DIV's border is
drawn over the whole width of the page, overwriting the left-floated DIV (the
texts don't overlap, though). Is this the same bug, a different bug, or is this
the correct behaviour? I suspect it is correct, but in that case, is there a way
to make a DIV that behaves more like a table, i.e. stays on the right of the
left float?
The code:
<html><body>
<div style="float: left; border: 1px solid black">left floated div</div>
<div style="border: 3px solid red">framed div</div>
</body></html>
Comment 31•22 years ago
|
||
That behavior is correct... You likely want to set the width on the floater
(that's required by the CSS2 spec anyway) and then set a left margin on the div.
Comment 32•22 years ago
|
||
Reconfirmed using FizzillaCFM/2002070913. Setting Platform=All.
Hardware: PC → All
Comment 33•22 years ago
|
||
*** Bug 157583 has been marked as a duplicate of this bug. ***
Comment 34•22 years ago
|
||
*** Bug 160117 has been marked as a duplicate of this bug. ***
Comment 35•22 years ago
|
||
Can owner change Target Milestone???
When this bug will be fixed?
Comment 36•22 years ago
|
||
*** Bug 163474 has been marked as a duplicate of this bug. ***
Comment 37•22 years ago
|
||
sorry folks, hope we can schedule this one for fixing soon.
Target Milestone: mozilla1.1alpha → mozilla1.3alpha
Comment 38•22 years ago
|
||
*** Bug 165759 has been marked as a duplicate of this bug. ***
Comment 39•22 years ago
|
||
*** Bug 173533 has been marked as a duplicate of this bug. ***
Comment 40•22 years ago
|
||
Requesting flag blocking1.3. While I certainly appreciate new features like spam
detection, Midas, link prefetching and what have you, I humbly think it's far
more important to fix long standing, serious bugs in the very core of the
browser: HTML rendering. Thank you.
Flags: blocking1.3?
Comment 41•22 years ago
|
||
Fixing major things in the core layout engine (like this one) is not something
that happens at the _end_ of the milestone. Changes like this happen in the
alpha stage.
Comment 42•22 years ago
|
||
This bug should actually be marked WONTFIX, as it isn't a bug; in CSS2, markers
aren't part of the content and so don't get "shoved over" by floats. At least,
that was the situation last time I checked, unless somebody errata'ed things out
from under me. This could morph into or spawn a new bug for implementing
'-moz-float-displace' (based on
http://www.w3.org/TR/css3-box/#the-float-displace) and then that could be thrown
into the UA style sheet to (maybe) give authors what they want.
Updated•22 years ago
|
Flags: blocking1.3? → blocking1.3-
Comment 43•22 years ago
|
||
You're abstractive right... But practicaly wrong. At now we have huge amount of
web pages, and part of them have this "bug".
I cannot imagine any situation when any web author would like to create
something like Mozilla's proper behaviour (both testcases). I'm almost sure that
wherever it's used, if it looks like Mozilla's render this it's unproper.
I think that we need to fix this and our behaviour should be same as Opera and IE.
Comment 44•22 years ago
|
||
IE 6.x also has this problem. With IE (and Mozilla), left aligning an image
than having an unordered list to the right of it is not displayed properly. IE
overlays the image over the bullets of the list items, making it less noticable,
whereas Mozilla overlays the bullets on the image making it more noticable.
Neither case is really acceptible.
Comment 45•22 years ago
|
||
I agree that there should be a way to silently handle these cases, which is why
I bought up -moz-float-displace as a subject for this bug, or a new one. That
way we could put into the UA style sheets (or maybe just quirks.css):
ul, ol, dl {-moz-float-displace: indent;}
...and then bullets wouldn't overlap with images (if I understand float-displace
correctly).
Alternatively, authors could add right margins to their leftward floats, which
will push away the content and thus push out the bullets. For example:
img.figure {float: left; margin-right: 1em;}
That should also do what authors want, without needing any new to be
implemented, and offers the advantage of letting them have some control over how
far the list items will be pushed from the float. It only helps authors who
know to do it, of course, but I could probably find the time to write a technote
on the subject. That seems like a good idea anyway, since IE6 is now doing
roughly the same thing Gecko is doing.
Comment 46•22 years ago
|
||
We already implemented -moz-float-edge (an earlier proposal for handling the
same thing) to fix bug 802, but that seems to have regressed.
Comment 47•22 years ago
|
||
I think that plain HTML without any style should always render sensibly, which
now isn't the case with <img align=left><ol><li>text. But it seems there's no
argument about that.
However, there is another thing I'd like to point out. Eric, the margin-right
solution on floats doesn't really work properly: although it does push text to
the right (and thus also the list markers, though indirectly), it also pushes
normal, non-list-item text, which may not be wanted. Also, the left
margin/padding that list items normally have is lost.
Is there really no way to correctly handle this in CSS2? :-o If IE6 shows the
same behaviour, what would be the way to solve this for IE (since I doubt it
will support CSS3 in the next ten years, judging by the fact that it still
hasn't even started on CSS2)? Okay, so this isn't a webdesigners' forum or IE
support, ;-) but I'd suppose that IE has a solution that we can imitate?
Updated•22 years ago
|
Component: Layout → Layout: Floats
Comment 48•22 years ago
|
||
*** Bug 199110 has been marked as a duplicate of this bug. ***
Comment 50•22 years ago
|
||
*** Bug 199747 has been marked as a duplicate of this bug. ***
Comment 51•22 years ago
|
||
*** Bug 203270 has been marked as a duplicate of this bug. ***
Comment 52•22 years ago
|
||
*** Bug 206006 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
Target Milestone: mozilla1.3alpha → ---
Comment 53•21 years ago
|
||
*** Bug 208885 has been marked as a duplicate of this bug. ***
Comment 54•21 years ago
|
||
*** Bug 209197 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Target Milestone: --- → Future
Comment 55•21 years ago
|
||
*** Bug 222108 has been marked as a duplicate of this bug. ***
Comment 56•21 years ago
|
||
*** Bug 222246 has been marked as a duplicate of this bug. ***
Comment 57•21 years ago
|
||
*** Bug 226538 has been marked as a duplicate of this bug. ***
Comment 58•21 years ago
|
||
Another test page is at <http://www.rossde.com/test.html>. This uses monospace
fonts to help show character, margin, and padding alignments.
Note that this bug affects lists when there is an adjacent block with style {
float: left } (as shown in my suggested test page). Thus, this bug does not
merely relate to lists adjacent to tables or images.
The list markers encroach into the right margin of the adjacent left-floated
block. The margin could be increased to prevent this (as stated in the middle
of comment #45). However, the alignment of the list items is still wrong
relative to the alignment of elements before and after the list.
A workaround involving setting the left margin of the list and list items is not
valid because the author would not have assurance that the list would actually
appear to the right of a left-floated block on all platforms with all browsers.
29 other bugs have been closed as duplicates of this one. It's time to fix it.
Updated•21 years ago
|
Keywords: mozilla1.0
Comment 59•21 years ago
|
||
bug@annevankesteren.nl, why did you remove the URL? I still see the problem
manifested on exactly that page with Mozilla build 2004021709. Don't you?
Comment 60•21 years ago
|
||
Reference my comment #58: I have moved my test page to
<http://www.rossde.com/test/test.html>.
Comment 61•21 years ago
|
||
*** Bug 188780 has been marked as a duplicate of this bug. ***
Comment 62•21 years ago
|
||
Added Myself to CC
Comment 63•20 years ago
|
||
*** Bug 246682 has been marked as a duplicate of this bug. ***
Comment 64•20 years ago
|
||
*** Bug 263555 has been marked as a duplicate of this bug. ***
Comment 65•20 years ago
|
||
*** Bug 283632 has been marked as a duplicate of this bug. ***
Comment 66•19 years ago
|
||
*** Bug 299402 has been marked as a duplicate of this bug. ***
Comment 67•19 years ago
|
||
Example of floating left table with list alongside (which is rendered
incorrectly), and right floating table with list alongside (which is rendered
correctly).
Comment 68•19 years ago
|
||
As I pointed out in comment #58, this problem is not limited to tables adjacent
to lists. It occurs with other block elements adjacent to lists.
In comment #60, I updated the link for a test case that doesn't use tables.
Comment 69•19 years ago
|
||
*** Bug 300635 has been marked as a duplicate of this bug. ***
Comment 70•19 years ago
|
||
*** Bug 303216 has been marked as a duplicate of this bug. ***
Comment 71•19 years ago
|
||
I see this bug still alive. Long time since year 2000 :-).
I suppose this issue is too late for 1.5 release, but perhaps 1.5.1 could solve
this long-lived bug.
Hope so :).
Flags: blocking1.8rc1?
Comment 72•19 years ago
|
||
This is the kind of thing that has a good bit of risk and needs to be fixed well
in advance of the release that will contain the fix. It's also not going to be
fixed in a security release.
Flags: blocking1.8rc1? → blocking1.8rc1-
Comment 73•19 years ago
|
||
It's almost Feburary 2006. Six months for a bug to be alive. What happened? Guy with the can of Raid never came back after going on a supply run?
Comment 74•19 years ago
|
||
I read time ago, somewhere, that the bug needed some deep changes in the Gecko rendering engine, so they where a bit dangerour for the 1.5 release.
With the gecko 1.9 branch currently open and release set well into 2007 (the Firefox 3 relase), this issue should be revisited.
I suppose we need to raise awareness about this issue. I already voted for it. All of you should do it also. And some chatting in a high profile web/blog could help a lot, also :-p
Soliciting the block status for Gecko 1.9. Hope never die :).
Flags: blocking1.9a1?
Comment 75•19 years ago
|
||
I read time ago, somewhere, that the bug needed some deep changes in the Gecko rendering engine, so they where a bit dangerour for the 1.5 release.
With the gecko 1.9 branch currently open and release set well into 2007 (the Firefox 3 release), this issue should be revisited.
I suppose we need to raise awareness about this issue. I already voted for it. All of you should do it also. And some chatting in a high profile web/blog could help a lot, also :-p
Soliciting the block status for Gecko 1.9. Hope never die :).
Comment 76•19 years ago
|
||
Stop adding useless comments. This bug is open so we KNOW that the problem exists.
There is no tested patch (there is no patch at all), so as long as you're not going to set a bounty for this bug, or fix it by yourself, or at least provide usefull feedback, please, consider not commenting it anymore.
Flags: blocking1.9a1?
Comment 77•19 years ago
|
||
*** Bug 327590 has been marked as a duplicate of this bug. ***
Comment 79•17 years ago
|
||
For what it's worth, I think the regression was a result of bug 35666 moving the -moz-float-edge declaration from ul/ol to li.
Summary: List markers render inside adjacent float edge → List markers (bullets) render inside adjacent float edge (implement float-displace property)
Comment 80•16 years ago
|
||
We've changed the way list items are handled in Firefox 3: see bug 413840 and also followup bugs like bug 427370, bug 416732, bug 428810. Implementing float-displace is somewhat orthogonal, though. So this is partly fixed, I suppose.
Assignee: layout.floats → nobody
QA Contact: ian → layout.floats
Comment 82•15 years ago
|
||
Also see my comments on float-displace here:
http://lists.w3.org/Archives/Public/www-style/2008Feb/thread.html#msg116
Comment 84•13 years ago
|
||
Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 SeaMonkey/2.3.3
This is still a problem in Gecko 6.0.2. The test page I cited in comment #58 still shows bullets (for a UL list) right on the edge of the adjacent box and numbers (for an OL list) inside the adjacent box. This is for adjacent boxes to the left of the lists.
Comment 85•10 years ago
|
||
As this bug causes grief for one of the pages on my website, I made a simple test page in HTML 4.01 Transitional.
http://www.jdawiseman.com/papers/bugs/20140625_firefox_ul.html
http://www.jdawiseman.com/papers/bugs/20140625_firefox_ul.png
OS X Mavericks 10.9.3 with lots of memory; Firefox 30.0.
Comment 86•10 years ago
|
||
Updated•2 years ago
|
Severity: normal → S3
Comment 88•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 41 duplicates, 40 votes and 70 CCs.
:TYLin, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Flags: needinfo?(aethanyc)
Comment 89•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Flags: needinfo?(aethanyc)
You need to log in
before you can comment on or make changes to this bug.
Description
•