> > 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?
(Btw, adding the margin: doesn't kill the scrollbars in Internet Explorer.
Any ideas on how to work around that?)