Closed
Bug 212887
Opened 21 years ago
Closed 20 years ago
Text outside textfield when toggling display of kids of display:table-cell fieldset
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jacborg, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file, 6 obsolete files)
929 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030716 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030716 I set up a form with fieldsets and inputs in divs. If I change the display style property to none and back to block of the divs, the page renders correctly, but trying to enter data, gets rendered half way up the field's baseline Reproducible: Always Steps to Reproduce: 1. 2. 3.
Comment 1•21 years ago
|
||
A URL or a minimal testcase illustrating the problem would be helpful. Also, the summary implies you're changing the fieldset to block/none/block while the description reads (to me) like you're doing it to div's within the fieldset. Which? (Another reason that a testcase helps.)
Reporter | ||
Comment 2•21 years ago
|
||
part of the form, some text has been entered in two fields for clarification in further screen shots
Reporter | ||
Comment 3•21 years ago
|
||
the fieldset address has been 'collapsed'. Address is the fieldset legend
Reporter | ||
Comment 4•21 years ago
|
||
the fieldset 'address' has been expanded and new text entered in fields.
Comment 5•21 years ago
|
||
Joseph, the screenshots don't help us get a handle on what's going on. The url of that site would be most helpful; alternately, save it as "Web Page, Complete" and attach to this bug, please.
Comment 6•21 years ago
|
||
_Please_ attach files to the bug like we asked instead of mailing them to people directly!
Updated•21 years ago
|
Attachment #127935 -
Attachment is obsolete: true
Attachment #127936 -
Attachment is obsolete: true
Attachment #127937 -
Attachment is obsolete: true
Comment 7•21 years ago
|
||
The display:table-cell on the fieldset itself is key here. Replacing the fieldset and legend with a pair of <div>s makes the bug go away, even if I keep the display:table-cell. Replacing just the <legend> with a <div> also makes the bug go away.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: MacOS X → All
Hardware: Macintosh → All
Summary: changing tha display property from block to none and back to block of fieldset, the text entered is not aligned to the field rendered → Text outside textfield when toggling display of kids of display:table-cell fieldset
Comment 8•20 years ago
|
||
The testcase works fine except that the <fieldset> is not repainted after the <legend> display has been set to 'none' (just covering the window results in the desired rendering). (I will try to fix the repaint issue in bug 276104). Boris, I'm not sure I understood the testcase though - did I miss something?
Comment 9•20 years ago
|
||
In 1.8a5 this testcase works, but I'll recheck in an older build when I get home....
Comment 10•20 years ago
|
||
So the old testcase used to work until bug 238989 got fixed back in April. With that fix, the DOM changed to include textnodes as kids of the fieldset. This testcase works with both the old and new DOM.
Attachment #127958 -
Attachment is obsolete: true
Attachment #169992 -
Attachment is obsolete: true
Comment 11•20 years ago
|
||
This makes sure we get the old DOM and reproduces the bug even in old builds with bug 238989 fixed.
Updated•20 years ago
|
Attachment #170206 -
Attachment is obsolete: true
Comment 12•20 years ago
|
||
Looks like behavior on that last testcase was fixed sometime between 2004-07-17-08 and 2004-07-18-07; probably in bug 251501.. Marking worksforme, but please reopen if there is still an issue in a current trunk build.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•