In gtk port we have detected a situation where the click on the UI controls goes to the audio node but it does not hit any button, in this case the test fails: ... var right = audio.offsetLeft + audio.offsetWidth; var bottom = audio.offsetTop + audio.offsetHeight; var x = right - 8; var y = bottom - 8; ... Probably we should move this test to Apple specific and each platform should create one depending on the layout of the buttons. With Gtk+ this code works: ... var x = right - 17; var y = bottom - 8; ...
Can we just find the middle of the element? Or use some more flexible math here?
https://bugs.webkit.org/show_bug.cgi?id=28220 is about exactly this problem, though I don't have a solution for the problem yet.
*** Bug 30247 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 28220 ***