I just suggested to Botond offline that we should take this to dev-platform. I 
am not sure a lot of our layout people are on dev-b2g.

I do think we should expose this (or something like it) to content. This 
behavior makes sense for app UIs as well (I am not sure this is the right API, 
but the general problem is more generic than just Fennec UI in HTML5).

Andreas

On Sep 19, 2013, at 8:10 AM, Ehsan Akhgari <[email protected]> wrote:

> Are you planning to expose this attribute to web content?
> 
> Cheers,
> Ehsan
> 
> On 2013-09-19 11:06 AM, Botond Ballo wrote:
>> (Resending from my alias so the list actually accepts this.)
>> 
>> ----- Original Message -----
>> From: "Botond Ballo" <[email protected]>
>> To: [email protected]
>> Cc: "Kartikaya Gupta" <[email protected]>, "Benoit Girard" 
>> <[email protected]>, "Jonas Sicking" <[email protected]>
>> 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-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/listinfo/dev-b2g
>> 
> 
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to