W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [css4-ui] Scrollbar tracking control

From: Elliott Sprehn <esprehn@gmail.com>
Date: Thu, 14 Jun 2012 17:14:10 -0700
Message-ID: <CAPJYB1jtXUfWzS0T8ZgJSTo7Q=oMX5UMDe4TJwikbeeCCpBaBg@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
On Thu, Jun 14, 2012 at 4:34 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> ...
>
> I request that we add an explicit control for this, such that if a
> scrollbar is currently scrolled against a particular edge, it can be
> made to "stick" to that edge when the content width/height changes.
> Something like:
>
> scrollbar-attachment: normal | edge;
>
> ...
>
> Thoughts?
>

This is something I've wanted for a long time because so many apps get this
wrong, but I don't think it's attachment behavior you want, it's changing
the direction the inside of the scroll view seems to "extend" towards.

For example if scrollTop = 0, there's no overflow and you insert 20 new
messages into the chat window you want the scrollbar to stay stuck at the
bottom not the top. With just "edge" this case is ambiguous since it was
touching both edges at the start since there was no overflow.

Something like overflow-growth-direction: top | bottom;

There's probably a better name for this concept though.

- E
Received on Friday, 15 June 2012 00:14:59 GMT

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