Thanks a lot for the clarifications! I guess rgba(255, 255, 255, 0) is the same as style="opacity: 0".
Actually your questions made rethink my definition of "visibility". I think that the best definition would be: A node is visible if the mouse cursor can be over it. I'm assuming here that for nodes that have style like "display:none" no "mouseover" events are fired, right ? Given the definition above, is there a better way to find out whether the node is visible ? On Mon, May 19, 2008 at 8:48 PM, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Michael R wrote: > > I think that you listed all the reasons : > > mVisibility, > > mOpacity, > > z-index, > > clipped overflow on the frame and all its ancestors > > > > Are are there any other (color independent) reasons that a node become > > invisible ? > > Note that "z-index" includes all aspects of the CSS stacking algorithm. > > Also note that it's possible for rendering objects to become "accidentally" > invisible as a result of other things stacking on top of them, just like it > can > happen with colors. > > Oh, "visibility:collapse" on an ancestor may affect rendering object > visibility > even if the rendering object has some other visibility setting. > > I'm not sure whether you care about the difference between: > > <div style="opacity: 0">Text</div> > > and > > <div style="color: rgba(255, 255, 255, 0);">Text</div> > > Is the latter "color-related"? > > -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
