Closed Bug 817961 Opened 12 years ago Closed 9 years ago

fieldset does not clear float when it doesn't fit next to it

Categories

(Core :: Layout: Floats, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 478834

People

(Reporter: slobberbone4884, Unassigned)

References

()

Details

(Keywords: css2, testcase)

Attachments

(3 files, 1 obsolete file)

Attached file form.html (obsolete) —
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20121119145849

Steps to reproduce:

I've got the code in th form.html.
This code works fine under IE or Chrome/chromium.
It's validate by http://validator.w3.org/nu/
But with Firefox 17.0 on Fedora 17 or on Windows 7/8 I've got the same issue : the form is not display whereas it's in the source code of the page.

If you remove the last <li> tag , it works (see comment REMOVETOWORK).
If you take the form.html and remove only <td> tag, it works too.
If you keep the first <td> tag it doesn't work. But in this same tag (<td>) you remove style=200px, so it works ! then you add the second <td> tag like original file, it doesn't work again ...


Actual results:

The form is not display. Not at all !


Expected results:

I should see the form.
Attachment #688153 - Attachment mime type: text/plain → text/html
The testcase works for me in Firefox 17 and Nightly on Linux.
Component: HTML: Form Submission → Untriaged
Keywords: testcase
Product: Core → Firefox
Sorry, you must remove the  /*REMOVETOWORK*/ tag, because with the tag, it woks too .... I don't understand why !

Please can you make the test again ?
(In reply to Mats Palmgren [:mats] from comment #1)
> The testcase works for me in Firefox 17 and Nightly on Linux.

Sorry, you must remove the  /*REMOVETOWORK*/ tag, because with the tag, it woks too .... I don't understand why !

Please can you make the test again ?
If you want to test in the context : http://www.opti-time.net:1080/production/?page_id=12

You may have the form, it's in the source code, but no display ...
Yeah this seems pretty wrong.  You can work around it with this CSS:
fieldset { clear: both; }
Attachment #688153 - Attachment is obsolete: true
Component: Untriaged → Layout
OS: Linux → All
Product: Firefox → Core
Hardware: x86_64 → All
Summary: No display with a form from wordpress plugin → fieldset does not clear float when it doesn't fit next to it
Version: 17 Branch → unspecified
http://www.w3.org/TR/CSS21/visuren.html#floats
The "The border box of a table, a block-level replaced element, ..." paragraph
in CSS2.1 9.5 seems to suggest we should clear the float.

I think this is a variation of bug 478834 (<fieldset> is a block-level replaced
element).
Status: UNCONFIRMED → NEW
Depends on: 478834
Ever confirmed: true
Keywords: css2
(In reply to Mats Palmgren [:mats] from comment #6)
> Created attachment 688209 [details]
> Same test with a <table> next to the float

This is ok with your advice to add fieldset { clear: both; } in my css. thank you !

I'll remove this page, do you want I attach to this bugID ? for the folowing step to resolve it ?
Component: Layout → Layout: Floats
Should be fixed in tomorrow's nightly.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: