Closed Bug 168391 Opened 23 years ago Closed 22 years ago

CSS font styles do not apply to <input type='submit' or 'button'>

Categories

(Core :: Layout: Form Controls, defect)

x86
OS/2
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: boris, Assigned: mkaply)

Details

(Whiteboard: fixed1.3)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.1) Gecko/20020827 Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.1) Gecko/20020827 Font styles e.g. font-family, font-weight and font-style do not applies to input elements type 'button'. MSIE, and Mozilla for Windows does. Reproducible: Always Steps to Reproduce: 1. Crete html from example below 2. Open it in Mozilla OS/2 3. See button Actual Results: Text 'Submit Query' isn't bold italic Expected Results: Text 'Submit Query' should be bold italic. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style type="text/css"> .button { font-family: Serif; font-weight: bold; font-style: italic; font-size: 10pt; border-style: solid; border-color: #000000; border-top-width: 1px; border-bottom-width: 2px; border-left-width: 1px; border-right-width: 2px; } </style> </head> <body> <form> <input type='submit' name='test' values' test input ' class='button'> </form> </body> </html>
OS: other → OS/2
This works fine for me. What font do you have specified for your Serif font?
I have tried many fonts including Tms Rmn, Courier and Helvetica. And have not seen bold italic with any of them. May be I have some specific options on, but I can't imagine what.
->form controls, although OS/2 has a different forms.css for some issues here.
Assignee: dbaron → jkeiser
Component: Style System → HTML Form Controls
QA Contact: ian → tpreston
What build are you using? I tried this with and without the custom OS/2 forms.css and it worked fine.
Summary: CCS font styles do not applies to <input type='submit' or 'button'> → CSS font styles do not apply to <input type='submit' or 'button'>
The latest official I think: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.1) Gecko/20020827. First I got buggy release 1.1 and the applied patch to it.
Please try this with 1.2a. I don't see this problem.
Same effect :( May be this information may help? ACP2, SNAP, Ati 3D Rage Pro.
Please check on the newsgroup and see if anyone else sees this. There's nothing I can do with it.
Did you check on the newsgroup? Noone sees this but you. We work fine on many machines.
Sorry, I was very busy. I understand that my computer is peculiar but can't understand what :) I may send You corresponding screenshots but don't believe that there help.
Are you sure you did this correctly? On Os/2, Arial Bold Italic does NOT work, so if you have Arial set as your Serif font, it will not work. Also, serif sould not be capitalized. PLEASE post on the newsgroup and see if anyone else has this problem. We aren't able to recreate it on 10 different OS/2 machines.
Boris, do you have an update here?
Unfotunatelly, problems are the same :( Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.3b) Gecko/20030211 May be this problem is related to cyrillic fonts? Or cyrillic codepage? I have two OS/2 machines with different video cards and SDD installed and effects are the same with both.
Duh. Patch coming.
Assignee: jkeiser → mkaply
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Fix (obsolete) — Splinter Review
I can't believe I didn't see this. I was inheriting the wrong thing. I should only be inheriting font-style, not all font attributes. Sorry about that.
Comment on attachment 116209 [details] [diff] [review] Fix Javier Pedemonte already looked at this and OKed it. If there is ANY way to get this in, I would love to. It is TOTALLY OS/2 specific and was causing some of our form elements not to display correctly. Thanks
Attachment #116209 - Flags: review+
Attachment #116209 - Flags: approval1.3?
Fixing and tagging so we pick it up for next iwb if it doesn't make it into 1.3final
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: iwb2.0.1
Attached patch Better fixSplinter Review
Better fix from dbaron
Attachment #116209 - Attachment is obsolete: true
Comment on attachment 116552 [details] [diff] [review] Better fix a=asa (on behalf of drivers) for checkin to 1.3.
Attachment #116552 - Flags: approval1.3+
Attachment #116209 - Flags: approval1.3?
Whiteboard: iwb2.0.1 → fixed1.3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: