"Visible" - is any node that the user can see on browser canvas (in it's "current" state).
Thanks, Michael. On Mon, May 19, 2008 at 6:59 PM, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Michael R wrote: > > I'd like to find out if a DOM node is visible on the rendered page. > > "Visible" in what sense? > > In any case, there are no easy ways to do this, no matter what the > definition > is, in Gecko 1.8. > > > The thing is that these checks not always work. > > Am I missing something ? > > mVisibility, mOpacity, z-index, clipped overflow on the frame and all its > ancestors all come to mind. Depending on your definition of "visible", of > course. > > > Also, there are cases where an invisible node contains visible nodes in > it's > > subtree. > > Sure, depending on your definition of "visible". > > > How can I be sure that the whole subtree of a node is invisible ? > > Depends on your definition of "visible". > > -Boris > _______________________________________________ > dev-embedding mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-embedding > _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
