Closed Bug 75632 Opened 24 years ago Closed 24 years ago

[FIX]Bad HTML <button> CSS causes jiggling when clicked

Categories

(Core :: Layout: Form Controls, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: sfraser_bugs, Assigned: bzbarsky)

References

Details

Attachments

(2 files)

Our CSS on <button> elements in HTML is bad; clicking on the button changes its size, and cause everything to jiggle.
Attached file test case
this happens on Linux too (good thing, that. :) )
OS: Mac System 8.5 → All
This was caused by the fix to 67207. adding default top/bottom padding to the button would regress that bug. So all we can do here is remove the extra padding in the :focus:active style. Attaching patch.
Attached patch patchSplinter Review
Keywords: patch, review
I tested it it looks good, r=rods
Status: NEW → ASSIGNED
Priority: -- → P2
Summary: Bad HTML <button> CSS causes jiggling when clicked → [FIX]Bad HTML <button> CSS causes jiggling when clicked
Whiteboard: fix in hand
Target Milestone: --- → mozilla0.9.1
Loos good to me too - in fact, this is what I proposed in bug 72115 (which is, I believe, the same as this). [s]r=attinasi
checking in bz's patch
Assignee: rods → bzbarsky
Status: ASSIGNED → NEW
Keywords: review
Whiteboard: fix in hand
fix checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 72115 has been marked as a duplicate of this bug. ***
Wasn't the purpose of the extra padding on the button so that when you press the button it's contents will move down (for the "3D") effect? In this case, seems to me it would make more sense to add extra padding to the bottom in the non-pressed state, rather than remove padding in the pressed state.
vectro@pipeline.com, did you read bug 67207? If not, please do so.
OK, so if I read bug 67207 correctly, we want all the inputs to have the same height. What this says to me is that we should increase the padding on all input elements so they are the same height as an input button + 2 px. My concern is that the fix for this bug is going to remove the effect of moving text on a pressed button down and to the right.
Also see bug 69130.. we would need to increase the size of <select> elements. Unfortunately, size=1 <select> elements with padding set look very very odd. I understand your concern, and I _think_ that the movement we still have horizonatally is sufficient...
I don't know how much movement we have now, so I can't comment on it's sufficency. But another solution would be to implement a down-and-to-the-right movement in the HTML widgets themselves, independent of CSS. Or else provide some way to specify style properties for the inside of the button.
Verifying on build 2001-04-19-04-trunk windows 98 and build 2001-04-19-08-trunk Linux RedHat 6.2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: