Closed Bug 276971 Opened 20 years ago Closed 20 years ago

Bad list item sign position while <table> is first child element of <li>

Categories

(Core :: Layout: Block and Inline, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 54979

People

(Reporter: petr.pisar, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

If first child element of <li> is <table>, then the item sign (carret) is
rendered under the table.



====Code====
<ul>

<li>Firts list item</li>

<li>
	<table>
		<tr>
			<td>
				This table is second list item, but the item
				sign is rendered under the table.<br>
				This render error uccures only if a table is
				the first child element of the list item.<br>
			</td>
                        Other text.
		</tr>
	</table>
</li>

<li>Last list item</li>

</ul>
Which version of Mozilla/Firefox are you using?

This is what I see in a current trunk build of Mozilla:
    * Firts list item
    * Other text.
      This table is second list item, but the item sign ...
      This render error uccures only if a table is the first ...
    * Last list item

Which is the correct rendering IMO. The reason for "Other text." being above
the table is that it is placed outside <td></td> (where text is not allowed).
Component: Layout: View Rendering → Layout
(In reply to comment #1)
> Which version of Mozilla/Firefox are you using?
Tested in Firefox 1.0, Mozilla 1.7.5, Mozilla 1.7.3 and Firefox nightbuild from
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-1.0+.en-US.linux-i686.tar.gz
from 21-Dec-2004.

> Which is the correct rendering IMO. The reason for "Other text." being above
> the table is that it is placed outside <td></td> (where text is not allowed).
I'm sorry, I have written the "Other text" by hand. The true position is after
the table but in list item:

<ul>

<li>Firts list item</li>

<li>
	<table>
		<tr>
			<td>
				This table is second list item, but the item
				sign is rendered under the table.<br>
				This render error uccures only if a table is
				the first child element of the list item.
			</td>
		</tr>
	</table>
	Other text.
</li>

<li>Last list item</li>

</ul>

Rendering I see is:
  * First list item
     This table is....
     This render error...
  *
    Other text.
  * Last list item
Attached file Testcase
OK, now I see the problem too, Mozilla 2005-01-02-06 trunk Linux.
Assignee: roc → nobody
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Block and Inline
Ever confirmed: true
Keywords: testcase
QA Contact: ian → core.layout.block-and-inline
dup of Bug 54979.

*** This bug has been marked as a duplicate of 54979 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: