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)
Core
Layout: Form Controls
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: sfraser_bugs, Assigned: bzbarsky)
References
Details
Attachments
(2 files)
|
186 bytes,
text/html
|
Details | |
|
527 bytes,
patch
|
Details | Diff | Splinter Review |
Our CSS on <button> elements in HTML is bad; clicking on the button changes its
size, and cause everything to jiggle.
| Reporter | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
this happens on Linux too (good thing, that. :) )
OS: Mac System 8.5 → All
| Assignee | ||
Comment 3•24 years ago
|
||
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.
| Assignee | ||
Comment 4•24 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
Comment 5•24 years ago
|
||
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
Comment 6•24 years ago
|
||
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
fix checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 10•24 years ago
|
||
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.
| Assignee | ||
Comment 11•24 years ago
|
||
vectro@pipeline.com, did you read bug 67207? If not, please do so.
Comment 12•24 years ago
|
||
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.
| Assignee | ||
Comment 13•24 years ago
|
||
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...
Comment 14•24 years ago
|
||
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.
Comment 15•24 years ago
|
||
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.
Description
•