W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Re: Make form elements behave consistently

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 Dec 2011 15:54:15 -0500
Message-ID: <4EFB81F7.3010005@mit.edu>
To: www-style@w3.org
On 12/27/11 4:58 PM, Quassy wrote:
> * In most browsers their font-size is larger than their parents (is
> this even a CSS matter or a browser-specific bug?)

It's a matter of CSS.  They just have a font style on them.  The 
font-size of <h1> is typically bigger than its parent too, no?

> * While overflow applies to them

It actually doesn't; they're replaced elements....

> textarea and input should be have no different
> to divs

That would mean no text rendering in <input>, and incorrect text 
rendering in <textarea>.

It also happens to not be web-compatible, by the way; web pages expect 
all sorts of non-CSS behavior from these elements.

> so CSS3 should allow declarations like
> textarea {height:auto;max-height:40em;}
> input {min-width:10em;width:auto;max-width:60em;}

These are allowed and should work just fine, modulo the replaced element 
bit and the way actual auto sizes for them work.

> Browser styles shall still default to fixed height and width to not
> break old code.

Browser styles right now default to auto.

> * While (apparently) all other elements default to
> box-sizing:content-box, most browsers default textarea and input to
> box-sizing:border-box

Yep.

-Boris
Received on Wednesday, 28 December 2011 20:54:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT