On Sat, May 7, 2016 at 10:21 AM, <[email protected]> wrote: > I noticed I'm still missing some elements. > Children of button HTML elements aren't returned by elementsFromPoint. > You can see it in this fiddle: https://jsfiddle.net/ztg9gppt/2/ > > Google Chrome does return the children within button elements, even divs. > Twitter is nesting divs within buttons on their feed. > > Has it been a deliberate choice to leave out the children of button > elements? >
Yes. elementFromPoint uses the same algorithm as event dispatch and in Gecko, mouse events over elements in a button target the button. Rob -- lbir ye,ea yer.tnietoehr rdn rdsme,anea lurpr edna e hnysnenh hhe uresyf toD selthor stor edna siewaoeodm or v sstvr esBa kbvted,t rdsme,aoreseoouoto o l euetiuruewFa kbn e hnystoivateweh uresyf tulsa rehr rdm or rnea lurpr .a war hsrer holsa rodvted,t nenh hneireseoouot.tniesiewaoeivatewt sstvr esn _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

