In article <9c8kv0$[EMAIL PROTECTED]>, "Jesse Ruderman" <[EMAIL PROTECTED]>
wrote:
>> > This url gives scrollbars that move up and down by one pixel. Why?
>> >
>> > data:text/html,<textarea style="width:100%; height:100%;"></textarea>
>>
>> At a guess, because textarea has the following styles in quirks mode:
>>
>> -moz-box-sizing: border-box;
>> margin: 1px 0 1px 0;
>>
>> ...with the top-margin removed by the :first-node rule, resulting in a
>> text area that has exactly the height of its parent, plus one pixel of
>> bottom margin.
>
>Cool, no scrollbars if I do
><textarea style=" border:0; width:100%; height:100%; margin:
>0px"></textarea>.
>
>Is it a bug that I have to set extra styles to get a textarea without a
>scrollbar?
Nope, because you're triggering quirks mode which is supposed to give a
"buggier" rendering that matches older browser behaviour. If you want to fix
it without the above style, just use an appropriate doctype, i.e.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
ian.
\ /
(@_@) http://www.eclipse.co.uk/sweetdespise/ (dark literature)
/(&)\ http://www.eclipse.co.uk/sweetdespise/libertycaptions/ (art)
| |