Closed Bug 197335 Opened 21 years ago Closed 21 years ago

Fix up aqua HTML form buttons

Categories

(Core :: Layout: Form Controls, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 197094

People

(Reporter: bryner, Assigned: bryner)

References

Details

Attachments

(2 obsolete files)

This bug tracks a few problems with the aqua HTML button implementation:

- buttons should not have an inner focus outline
- we need to add back in the hack to not draw the focus outlines on jaguar
because of the ugly lines through the buttons
bryner, any chance the "hack to not draw focus outline" will land in time for 1.4a?
Flags: blocking1.4a?
*** Bug 197580 has been marked as a duplicate of this bug. ***
Depends on: 162877
Attached patch patch (obsolete) — Splinter Review
This fixes:

- the lines through buttons, by disabling the focus outline
- too much padding on buttons
- adds some margin for buttons
Attached patch patch (obsolete) — Splinter Review
this one fixes some problems with disabled buttons
Attachment #117540 - Attachment is obsolete: true
Attachment #117542 - Flags: superreview?(bzbarsky)
Attachment #117542 - Flags: review?(pinkerton)
Comment on attachment 117542 [details] [diff] [review]
patch

Hmm.. doesn't this make buttons and text inputs different heights?  See comment
at
http://lxr.mozilla.org/seamonkey/source/layout/html/document/src/forms.css#82

As long as the testcase at
http://web.mit.edu/bzbarsky/www/testcases/form-baseline/textInputInRunningText.
html looks fine with this patch (text inputs, file inputs, buttons all the same
height), sr=bzbarsky.
Attachment #117542 - Flags: superreview?(bzbarsky) → superreview+
I'm getting a 404 on that URL.  I also don't understand why these elements all
need to be the same height.  What does that accomplish?
Um.  I wonder why
http://web.mit.edu/bzbarsky/www/testcases/form-baseline/textInputInRunningText.html
got line-broken....

What it accomplishes is consistency.  More importantly, it accomplishes
non-broken rendering of <input type="file">, since the code for that assumes
that buttons and text inputs are the same height (if they are not, file inputs
look ugly and act broken).

In the end, all that matters is that the controls look good.  You could run
through the testcases in
http://web.mit.edu/bzbarsky/www/testcases/form-baseline/ in general to see how
your css reacts to various things people do to form controls.... (though those
testcases focus on textboxes).
Couldn't you use top/bottom margin to pad out shorter elements to the height of
a larger element, rather than ensuring that border+padding are the same, as the
comment says?
Possibly.  I don't think I considered trying that.... Note that imo it _does_
look better with the form controls a consitent height, but again, I don't know
what it looks like on Mac.
On
<http://web.mit.edu/bzbarsky/www/testcases/form-baseline/textInputInRunningText-quirk.html>i
if I click any of the "BuTtoN" buttons next the the input, then the browser
button next to it grows larger eaach time. This doesn't happen with non-native
controls.
Hrm, it's a bit worse than that. If one of the buttons has focus, and reflow
happens (e.g. window resize) then buttons grow and grow.
Yep.  That's one symptom of letting the heights be different, if I recall.

Of course the same issue could be caused by other problems too (eg bugs in
button reflow).....
I don't see the ugly lines through buttons other than kThemePushButton on
Jaguar. Why can't we draw the focus outline around every kind of button except
for that one?

Also, you might want to incorperate the stuff in the patch attached to bug
197094. (there is some overlap with this patch)
I'll merge them together and fix it to only suppress the focus border for
pushbuttons.  Thanks for the info.

*** This bug has been marked as a duplicate of 197094 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Flags: blocking1.4a?
Attachment #117542 - Attachment is obsolete: true
Attachment #117542 - Flags: review?(pinkerton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: