[webkit-dev] Expected behavior of "scrolling" attribute for IFrame element

Simon Fraser simon.fraser at apple.com
Mon Jun 13 10:49:38 PDT 2011

On Jun 13, 2011, at 8:30 AM, Darin Adler wrote:

> HTML5 defines this scrolling attribute. It defines it in terms of a CSS overflow property on the frame below. The value scrolling="no" turns into overflow: hidden. Such overflow areas should not be scrolled.
> As I understand it, generally speaking, if we have something like a find feature or autoscrolling code that scrolls outside the normal mechanism, it still should not scroll such an area and needs some other way to deal with content that is hidden by being off the edge of a scrollable area. This can happen with things like large margin values (particularly negative ones) as well as simply overflowing the space provided.

overflow:hidden divs can still be scrolled via JS by setting 'scrollTop', however, so it's not clear to me that programmatic scrolling should be prevented.


More information about the webkit-dev mailing list