1. "Over it" means that there exists a point on the page such that if I
point the mouse on the point "mouseover" event would firef for that node
.Analogously if I'd click the mouse "click" event would fire for that node.
2. <div style="height: 0">
<div style="height: 100px">Text</div>
</div>
<div style="height: 100px; background: white; opacity: 0.3"></div>
> The only node here for which mouseover events will fire is the div
with opacity:0.3.
Why is that ? Because of style="height:0" ?
3. I looked at GetFrameForPoint and I found there only one visibility check
: frame->GetStyleVisibility()->IsVisible()
I wonder if the style visibility reflects other reasons for node being
invisible (e.g. "display: none") ?
On Tue, May 20, 2008 at 10:14 AM, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> Michael R wrote:
> > Thanks a lot for the clarifications!
> > I guess rgba(255, 255, 255, 0) is the same as style="opacity: 0".
>
> Ok...
>
> > 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.
>
> Define "over it"?
>
> > I'm assuming here that for nodes that have style like "display:none" no
> > "mouseover" events are fired, right ?
>
> Correct, nor are they fired for "visible" nodes:
>
> <div style="height: 0">
> <div style="height: 100px">Text</div>
> </div>
> <div style="height: 100px; background: white; opacity: 0.3"></div>
>
> The only node here for which mouseover events will fire is the div with
> opacity:0.3.
>
> > Given the definition above, is there a better way to find out whether the
> > node is visible ?
>
> If you mean the mouseover definition, you might be able to get somewhere
> with
> getFrameForPoint, maybe...
>
> -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