Taking this to dev-platform so that more layout people will see this. ----- Forwarded Message ----- From: "Botond Ballo" <bot...@mozilla.com> To: dev-...@lists.mozilla.org Cc: "Kartikaya Gupta" <k...@mozilla.com>, "Benoit Girard" <bgir...@mozilla.com>, "Jonas Sicking" <sick...@mozilla.com> Sent: Thursday, September 19, 2013 11:06:03 AM Subject: Re: RFC: new attribute 'mozscrollgrab' for B2G address bar scrolling
(Resending from my alias so the list actually accepts this.) ----- Original Message ----- From: "Botond Ballo" <bba...@mozilla.com> To: dev-...@lists.mozilla.org Cc: "Kartikaya Gupta" <k...@mozilla.com>, "Benoit Girard" <bgir...@mozilla.com>, "Jonas Sicking" <sick...@mozilla.com> Sent: Wednesday, September 18, 2013 3:51:31 PM Subject: RFC: new attribute 'mozscrollgrab' for B2G address bar scrolling Hello, I'm working on making the address bar in the browser app work more like Fennec (bug 860812). As part of this work, we want the <div> enclosing the address bar and the content iframe to have special scrolling behaviour. Specifically, we want this <div> (which will be overflow:scroll once my patches land) to scroll before content in the iframe scrolls. Once the div has scrolled as far as possible, the remaining scroll will be handed off to the iframe. We can call this behaviour "scroll grabbing", in the sense that the <div> grabs the scroll before it gets to the iframe. To ensure that only apps that explicitly want this behaviour get it, I am proposing that we introduce a new attribute called 'mozscrollgrab', which the browser app would set on the <div> in question. Only elements with this attribute would get the scroll grabbing behaviour. I propose that this attribute be unofficial/undocumented for now, until we are confident that this is the right design for us, at which point we can make it official/documented if we want. Thoughts? Thanks, Botond _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform