Status: Unconfirmed
Owner: ----
Labels: OS-Android Pri-2
New issue 141840 by
ivan.per...@openbravo.com: document.elementFromPoint
returns a wrong element
http://code.google.com/p/chromium/issues/detail?id=141840
Chrome Version: 18.0.1025123
URLs (if applicable): See attached file
Android version: 4.0.3
Build number: IML74K.BULPD
Device: Samsung Galaxy S II (GT-I9100)
Behavior in Chrome for Android Browser (if applicable):
Steps to reproduce:
1. Save the attached file in an mobile accessible location(webserver) and
load it with a device using Chrome for Android
2. Tap/Touch the 3rd button
3. You'll see the x,y coordinates and the detected button
Expected result:
* You should get the DOM element nearest to the x,y position, e.g. If I tap
the B3, the B3 should be the element returned
*
http://dev.w3.org/csswg/cssom-view/#widl-Document-elementFromPoint-Element-float-x-float-y
*
https://developer.mozilla.org/en-US/docs/DOM/document.elementFromPoint
Actual result:
* You get a wrong button. When you tap the B3, you get the reference B2,
when you tap B2, you get a reference to B1
Extra notes:
* This example works fine in the following mobile browsers:
- Default Browser for Android (4.0.3)
- Safari on iOS 5 (5.1.1)
- Chromium 21.0.1180.75 simulating touch events with Developer Tools
Attachments:
element.html 1.2 KB