[whatwg] Styling form controls

I want to be able to style form controls.

For example 
<button style="display: block; border:1px solid
red;padding:0;margin:0"><div>content</div></button>

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
attribute.

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.



-- 
http://dhtmlkitchen.com/

Received on Saturday, 30 April 2005 14:09:38 UTC