Bug 153202 - Incorrect element hit testing for inline elements containing children with transform applied
Summary: Incorrect element hit testing for inline elements containing children with tr...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 9
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-01-18 00:45 PST by Robert Knight
Modified: 2016-01-18 12:16 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Knight 2016-01-18 00:45:42 PST
This is a re-post of an issue which I originally filed for Chrome but was also able to reproduce in Safari 9: https://code.google.com/p/chromium/issues/detail?id=576655 . A patch for Chrome is under review at https://codereview.chromium.org/1588003003/

Example URL:
https://gist.github.com/robertknight/8450c09b280564df03f9

Steps to reproduce the problem:

1. Save the gist to a local HTML file and open it in Chromium
2. Hover the mouse over the space between 'World' and 'Test', note that no background color is seen and the cursor is the default cursor.
3. Hover the mouse over 'World' so that the <span> gets a red background
4. Hover the mouse over the space between 'World' and 'Test', note that the behavior is now different from in step 1. The background/cursor styles are now applied.

Compare the result to Firefox where the background color is shown when hovering the space between 'World' and 'Test' in step 1.

What is the expected behavior?
I expect that hovering the space between 'World' and 'Test' would highlight the element in step 1.

What went wrong?
Adding a transform or other effect which triggers a new stacking context to a child of an `inline` element appears to break hit testing for the element when it is initially displayed.

Does it occur on multiple sites: No

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes
Comment 1 Radar WebKit Bug Importer 2016-01-18 12:16:55 PST
<rdar://problem/24230705>