Re: [CSS 2.1] overflow of replaced elements

On Mon, 1 Dec 2003, Boris Zbarsky wrote:
>
> Yes, I realize you consider all form controls to not be replaced
> elements.  Sorry, that doesn't fly.  If a <textarea> were an
> inline-block, it would display the text that lives inside it (in
> textnodes). [...]

What is displayed inside it is independent of what display type it has.

   textarea {
     display: inline-block;
     appearance: field;
     white-space: pre;
     overflow: scroll;
     content: dom(value);
   }

...or something. (I haven't checked those are the right property values
for appearance, white-space, and overflow).


> So let's get back to my question....  Given that a textarea is _not_
> just an inline-block, should "overflow" on it still have the effect you
> describe? Note that this effect may well be impossible if
> platform-native editor widgets are used (instead of rolling your own
> like some browsers do).

The spec intentionally does not define how CSS applies to form controls,
so the official answer is "whatever you like". My answer would be "yes",
with platform-native editors being exempt if they are used.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 1 December 2003 21:07:59 UTC