W3C home > Mailing lists > Public > www-style@w3.org > March 2010

Re: Suggest a property for autoresizing textarea

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 29 Mar 2010 18:27:46 -0700
To: www-style@w3.org, "ATSUSHI TAKAYAMA" <taka.atsushi@googlemail.com>
Message-ID: <op.vacw0kwj64w2qv@annevk-t60>
On Mon, 29 Mar 2010 00:26:59 -0700, ATSUSHI TAKAYAMA  
<taka.atsushi@googlemail.com> wrote:
> I got redirected from WHATWG about this topic.
> http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-March/025655.html
> It would be nice if there was a single CSS property that fits textarea
> hight automatically to its content. It is clear that this feature is
> vastly desired and being implemented with JavaScript. (Search
> "autoresize textarea" on the web for example)
> I would have thought "hight:auto" should do the job, but that wasn't
> the case. Can anyone explain why "height:auto" or "max-height:auto"
> for textarea does not work for this purpose?

The general problem is that styling is not defined for form controls. They  
are considered out of scope as far as CSS is concerned. Browsers have  
implemented support for CSS properties anyway to various degrees (and the  
CSS WG has defined pseudo-classes and even pseudo-elements for form  
controls ironically), but none of the styling is documented.

Anne van Kesteren
Received on Tuesday, 30 March 2010 01:28:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:44 UTC