Closed Bug 295476 Opened 19 years ago Closed 18 years ago

tables inside a fieldset do not render properly if fieldset display is "inline"

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robzilla, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [reflow-refactor])

Attachments

(3 files)

If you have a table inside a fieldset, the fieldset won't render properly if its
"display" style is set to "inline".

The problem (in my case) is that the width of the columns is not consistent
across rows. 

Please see forthcoming attachment for a test case
oh, sorry - using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8)
Gecko/20050516 Firefox/1.0.4 (MOOX M2)
This looks like a missing reflow, this happens usually when a unconstrained
initial reflow is not followed by constrained size resize reflow.
any suggested temporary workarounds?
>any suggested temporary workarounds?
supply a patch for review ;-)
or change the fontsize by the DOM to get another reflow
> or change the fontsize by the DOM to get another reflow

I'm not sure what you mean by this - I don't know anything about Mozilla
internals.  Any chance you'd be willing to provide an example?
Just enter CTRL + to increase the font szize and then CTRL - to revert.
This behavior is also exhibited when the fieldset is floated.
This is basically bug 210876.
Depends on: 210876
Whiteboard: [reflow-refactor]
This also happens if the fieldset is floated.
Forcing a reflow with Ctrl+/Ctrl- doesn't entirely fix this bug. In my testcase, hit ctrl+ and then ctrl- (or vice versa). The cells will become aligned but their widths become incorrect.

A better workaround is to use JS to apply width:100% to either the table or the tbody. This fixes it entirely (even after playing with font scaling). Oddly, it ONLY works if applied dynamically; hardcoding width:100% in the HTML has no effect.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061208 Minefield/3.0a1 ID:2006120812 [cairo]

Seems fixed by reflow branch landing
Status: NEW → RESOLVED
Closed: 18 years ago
Depends on: reflow-refactor
Resolution: --- → FIXED
Adding in-testsuite? nomination per bz's request in m.d.t.l. Sorry for the bugspam.
Flags: in-testsuite?
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: