On Sep 13, 2013, at 10:00 PM, "Robert O'Callahan" <rob...@ocallahan.org> wrote:
> On Fri, Sep 13, 2013 at 7:25 AM, Benjamin Smedberg <benja...@smedbergs.us> > wrote: > This is a hard problem, and it depends on what question you're asking: > > * Is a node visible if it's in the window but some other window is covering > the current window? > * Is a node visible if it's currently scrolled out of view but would be > visible when scrolled? > * What about if overflow:hidden is set on whatever is scrollable? > * What about if it's in a background tab? > > Yes, and what if it's covered by an opaque element? What about an element > that's opacity:0.999? What if it's in a CSS transform with scale(0)? > scale(0.001)? visibility:hidden? font-size:0? > > Figure out what's wanted and we can implement it or tell you how to :-). Dear lads, thank you for explaining that this is indeed not as straightforward as I had hoped! I'll try to explain what's wanted at this point: The questions the method should answer is: * Is a node visible, regardless of overlapping windows? * Is a node visible, regardless of the current viewport state - which means also when it's not scrolled into view? * Is a node visible, even if its in a background tab? * Is a node visible, with all CSS styling taken into account that might cause an element to not be visible, including parent nodes that might obscure it? In other words, when a node is painted on the canvas by the gfx layer, partially or not, I'd expect the method to return `true`. If elements are not painted in background tabs or if its below an overlapping window, then that's OK if it simplifies the method implementation; the consumer(s) of this method will just have to take that into account. > > Rob > -- > Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le > atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa > stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, > 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp > waanndt wyeonut thoo mken.o w Thanks for your replies! Mike.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform