Closed Bug 40065 Opened 25 years ago Closed 25 years ago

[FIX]<input type="button"> and <button> use different fonts

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: rods)

Details

(Keywords: html4, Whiteboard: Fix in tree (low risk))

Attachments

(1 file)

<input type="button"> and <button> use different fonts, causing html4 buttons to look bigger than old form buttons. this doesn't seem to violate an html 4 spec, but it does make pages that mix <input type="button"> and <button> look ugly. from http://www.w3.org/TR/html4/interact/forms.html#h-17.5 : Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to "image", but the BUTTON element type allows content. Visual user agents may render BUTTON buttons with relief and an up/down motion when clicked, while they may render INPUT buttons as "flat" images.
Attached file test case
The rule for BUTTON in html.css needs to have the font-face and font-size specified. Adding the following to the testcase makes the buttons the same size: BUTTON { font-family: sans-serif; font-size: small; } So, I think this should be added to html.css for BUTTON - sending to the control-master for approval.
Assignee: pierre → rods
Component: Style System → HTML Form Controls
HTML 4.x compliance, easy fix to style sheet
Keywords: html4, nsbeta2
Whiteboard: Fix in tree (low risk)
accepting and marking as M16
Severity: minor → normal
Status: NEW → ASSIGNED
Target Milestone: --- → M16
Summary: <input type="button"> and <button> use different fonts → [FIX]<input type="button"> and <button> use different fonts
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: chrisd → ckritzer
Updating QA contact.
QA Contact: ckritzer → bsharma
Works for Me Platform: PC OS: Windows 98 Mozilla Version: 2000100508 Marking as Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: