Closed Bug 65566 Opened 24 years ago Closed 22 years ago

Border is redrawn improperly when fieldset size is increased

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.1alpha

People

(Reporter: Antti.Nayha, Assigned: john)

References

Details

(Keywords: html4, testcase)

Attachments

(3 files)

Overview description:
  Fieldset border is improperly redrawn when the fieldset's size is increased
  dynamically.

Steps to reproduce:
  1) View the attachment.
  2) Push the button to reveal the hidden paragraph.

Actual results:
  The new, expanded border is drawn, but the previous border is not completely
  cleared.  Result: an ugly extra horizontal line in the right border.

Expected results:
  Nice, clean redraw.  See the attachment on eg. IE 5.5.

Build date & platform:
  2001-01-15-08 (Linux i686)

Additional builds and platforms:
  Mozilla 0.7 (Win32)
Adding 'html4' keyword.
Keywords: html4
This is an calculation error caused by the border/padding value(s) in the CSS.
If you use something like this:

  fieldset {
  	display : block;
  	border : 1px solid black;
  	padding : 0px;
	padding-top : 4px;
	padding-bottom : 4px;
  	margin-left : 2px;
  	margin-right : 2px;
  }

then you don't see that problem! If you set border to 2px then you will see 1px
at the right! By increasing the border/padding value(s) the problem get worse,
by that amount of pixels. If you resize the window, the problem is solved. So
this is only a problem after the first rendering. It's a bug, that's for sure!
b.t.w. that line around fieldset in the default HTML.CSS should be 1px thick and
not 2px because that's ugly!
H-J wrote:
> b.t.w. that line around fieldset in the default HTML.CSS should be 1px thick and
> not 2px because that's ugly!
Actually I would have thought 2px groove threedface would be nicer (c.f.
http://lxr.mozilla.org/seamonkey/source/themes/classic/global/win/box.css)
Netscape's standard compliance QA team reorganised itself once again, so taking 
remaining non-tables style bugs. Sorry about the spam. I tried to get this done 
directly at the database level, but apparently that is "not easy because of the 
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
Reassigned to Layout/attinasi.  I guess there is problem with the reflow of the 
nsFieldSetFrame. It doesn't happen with DIVs for instance (see my new testcase).
Assignee: pierre → attinasi
Component: Style System → Layout
Attached file testcase fieldset/div
Looks more like an invalidation problem, because hiding and re-exposing the
fieldset frame makes it paint OK. CC'ing rods.
Keywords: testcase
Target Milestone: --- → mozilla1.1
The fix to bug 124507 can be applied to this as well.  Taking.
Assignee: attinasi → jkeiser
Depends on: 124507
Status: NEW → ASSIGNED
WFM 2002050806/branch/Win2K
It is passing strange, but this WFM Linux 2002050910 too.  I don't see any fixes
to nsFieldsetFrame, but clear as day the problem is fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: