If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

RESOLVED FIXED

Status

()

Core
Layout: Block and Inline
RESOLVED FIXED
13 years ago
5 years ago

People

(Reporter: robzilla, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [reflow-refactor])

Attachments

(3 attachments)

(Reporter)

Description

13 years ago
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
(Reporter)

Comment 1

13 years ago
Created attachment 184503 [details]
test case for replication

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)

Comment 2

13 years ago
This looks like a missing reflow, this happens usually when a unconstrained
initial reflow is not followed by constrained size resize reflow.
(Reporter)

Comment 3

13 years ago
any suggested temporary workarounds?

Comment 4

13 years ago
>any suggested temporary workarounds?
supply a patch for review ;-)
or change the fontsize by the DOM to get another reflow
(Reporter)

Comment 5

13 years ago
> 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?

Comment 6

13 years ago
Just enter CTRL + to increase the font szize and then CTRL - to revert.
(Reporter)

Comment 7

13 years ago
Created attachment 184873 [details]
image showing erroneous behaviour

Comment 8

13 years ago
This behavior is also exhibited when the fieldset is floated.
This is basically bug 210876.
Depends on: 210876
Whiteboard: [reflow-refactor]

Comment 10

12 years ago
This also happens if the fieldset is floated.

Comment 11

12 years ago
Created attachment 215455 [details]
Testcase that font scaling won't fix properly

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
Last Resolved: 11 years ago
Depends on: 300030
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.