[whatwg] Styling form controls

Garrett Smith dhtmlkitchen at gmail.com
Sat Apr 30 14:09:38 PDT 2005

I want to be able to style form controls.

For example 
<button style="display: block; border:1px solid

Safari is the only browser that renders the above example correctly: A
button with form element behavior, styled as specified.

Browsers should all do this, but none (except safari) do. Moz, Opera,
and IE do some sort of compromise (Moz & Op just blindly mimic IE to
some degree).

Perhaps display: auto would describe what most UA's do now; they just
use their own native-type of gui.

I want to use my gui and have the button funtion as a button. If I
want to submit or reset the form, I'll use the appropriate type

What do page authors do now? Well, most will use something as
inaccessible as this w/o even blinking:
<div style="..."><a href="javascript:submitForm()"></div>

Javascript should not be relied upon for page submissions and its up
to the browser vendors to give page authors more flexibility.

So how about letting us style form controls.


More information about the whatwg mailing list