Closed Bug 291759 Opened 20 years ago Closed 20 years ago

{inc}If auto width table has list element that is child of font element, layout is reflowed.

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: masayuki, Unassigned)

References

()

Details

(Whiteboard: [reflow-refactor])

See testcase.
http://bugzilla.mozilla.gr.jp/attachment.cgi?id=2734&action=view

In this case, the elements are follwing relation.

table(auto width)
  font
    ul
      li
        a[href]

If the link is clicked, the layout reflow.(layout is broken)
If the list element is p element, I cannot reproduce it.

In DOM Inspector, I can see same relation.
font
  ul
    li

But if ul>li elements are p elelemnt, I can see follwing relation.
font
p
  font
Could you attach a screen shot of what you think is the bug? I think it is just
the <br clear=all> that makes the extra space, after all, it is a line break.
(In reply to comment #1)
> Could you attach a screen shot of what you think is the bug? I think it is just
> the <br clear=all> that makes the extra space, after all, it is a line break.

Did you say for bug 291759?
It is reproduced on WinXP and Linux.
OS: Windows XP → All
Yes, sorry about that.
OS: All → Windows XP
OS: Windows XP → All
Hardware: PC → All
Blocks: 261196
Bernd:

This bug is reproduced in table cell only.
Please check it.
>This bug is reproduced in table cell only. Please check it.
I am little bit puzzled, what should I do? Yes I see that too.
So usually when things shrink in a auto table thats a result of a wrong
maximumwidth of the content during incr. reflow. This can be debugged with
reflow log http://www.mozilla.org/newlayout/doc/frame_reflow_debug.html . Have 
a look for the m = numbers. I think it comes from the margins on the list
element. Bug 103582 looks very similiar. Bug 195770 see my comments there why
one should produce and analyze a reflow log.
Bernd, I think that this problem has same cause as Bug 147558, since posted
attachment 165805 [details] [diff] [review] also has an effect for testcase.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050428
Firefox/1.0+

I can still reproduce this.
Depends on: 147558
Summary: If auto width table has list element that is child of font element, layout is reflowed. → {inc}If auto width table has list element that is child of font element, layout is reflowed.
Whiteboard: [reflow-refactor]
I cannot reproduce on 6/20 build.
Thank you, Saito-san!
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.