Closed Bug 294803 Opened 19 years ago Closed 15 years ago

Float elements inside a fieldset

Categories

(Core :: Layout: Floats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: gellert.gyuris, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; hu-HU; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu-HU; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Inside a fieldset there are _only_ float elements. Anyway, he height of the
containing fieldset grows till the height of the inner part.

Reproducible: Always

Actual Results:  
Now the height of the containing fieldset grows till the height of the
contained float elements.

Expected Results:  
The float elements should stretch beyond the fieldset (see the screenshot).
References: it works well in Opera8, Safari1. It works badly in IE,
Konqueror 3.4, Opera7.x
Attached file testcase
Attached image opera8 screenshot
Keywords: testcase
Fieldset is a block formatting context root in Mozilla.  Hence the behavior you
observe.  Since behavior of fieldset can't be described by CSS, in general, this
is in fact allowed by the spec.
Whiteboard: DUPEME
Similar to this, I'm getting "clear: both" ignored inside fieldsets. A workaround seems to be to add a border to the DIV you want the clear: both to work for.
Depends on: 276456
Per HTML 5, fieldsets establish a new block formatting context, effectively making this bug invalid.

(In reply to comment #4)
> Similar to this, I'm getting "clear: both" ignored inside fieldsets. A
> workaround seems to be to add a border to the DIV you want the clear: both to
> work for.

I'll try to find out whether this was a bug in Fx 1.0; if so, I'll add a reftest later.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
(In reply to comment #5)
> I'll try to find out whether this was a bug in Fx 1.0;

Ah, that was bug 309550. There was no reftest added, so here's a quick one.
Attachment #373563 - Flags: review?(roc)
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: