Bug 113874

Summary: [CSS Regions] Hit testing is broken for absolutely positioned regions that have overflow: hidden
Product: WebKit Reporter: Mihai Balan <mibalan>
Component: CSSAssignee: Mihnea Ovidenie <mihnea>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, mihnea, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312    
Attachments:
Description Flags
Test file highlighting the problem
none
Patch
none
Patch for landing none

Description Mihai Balan 2013-04-03 07:00:57 PDT
Created attachment 196344 [details]
Test file highlighting the problem

For regions that have overflow: hidden and are absolutely positioned, hit testing is broken, as follows:
  - :hover rules never get applied
  - mouse events handlers don't fire
  - document.elementFromPoint() returns bogus elements.

For instance, in the attached test file:
- the text below the regions should read "document.elementFromPoint() - OK"
- move the mouse over the orange rectangle and click

EXP: orange rectangle turns black, PASS appears
ACT: orange rectangle turns black, nothing appears
Comment 1 Mihnea Ovidenie 2013-04-25 08:28:13 PDT
Created attachment 199663 [details]
Patch
Comment 2 Dave Hyatt 2013-04-25 10:37:16 PDT
Comment on attachment 199663 [details]
Patch

r=me
Comment 3 Mihnea Ovidenie 2013-04-25 22:55:38 PDT
Created attachment 199784 [details]
Patch for landing
Comment 4 WebKit Commit Bot 2013-04-25 23:22:51 PDT
Comment on attachment 199784 [details]
Patch for landing

Clearing flags on attachment: 199784

Committed r149168: <http://trac.webkit.org/changeset/149168>
Comment 5 WebKit Commit Bot 2013-04-25 23:22:52 PDT
All reviewed patches have been landed.  Closing bug.