Closed Bug 642149 Opened 14 years ago Closed 13 years ago

Buttons element don't have the same height as other elements

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 140562

People

(Reporter: batiste, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.10 Chromium/9.0.597.107 Chrome/9.0.597.107 Safari/534.13
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US)

You have a full automated test suite on the link.
The whole test suite pass with Opera, Webkit and even IE8.
Firefox 3.6 and 4 beta fails to several of those tests

Reproducible: Always

Steps to Reproduce:
1. Follow the link

Actual Results:  
Firefox fails at several tests

Expected Results:  
All tests should pass, like the other browsers
The test is making invalid assumptions about the internal rendering of replaced elements...  The issue is that buttons leave a few pixels of space for rendering a focus outline around the text on the button.

You can style this text off, with a mozilla-only CSS extension if it's being a serious problem.
Whiteboard: DUPEME
Oki I updated the tests.

I think it's quite annoying I need to add this to my CSS to have a similar rendering with FF and other browsers:

button::-moz-focus-inner { border: 0; }

Coudn't it be possible to have the same behavior as the other browser by default? Is there any document describing what should happening in more details or FF and other do what want?

It seems that other browser just drop the focus as soon as the element is in display:block.
There's ongoing work to try to standardize form control rendering, yes.  It's pretty early-stages, though.
In the meantime, for this particular case I see 3 options:

1. Mozilla convinced all other browser vendors to change the way they render button to add the extra pixels to the button. Potentially breaking existing websites.

2. Mozilla change to be like other vendors and we can start using the button element more easily.

Without a rock solid argument for those extra pixels, the first one is not an option IMHO.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.