Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/LayoutTests/hittesting/culled-inline.html

Issue 1588003003: Incorrect element hit testing for inline elements containing children with transform applied (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code and comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/hittesting/culled-inline-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 <style>
6 #culled:hover {
7 background-color: green;
8 }
9 .left {
10 display: inline-block;
11 transform: translateY(0px);
12 border: 1px solid black;
13 }
14 .right {
15 margin-left: 200px;
16 border: 1px solid black;
17 }
18 </style>
19 </head>
20 <body>
21 <div id="container">
22 <span id="culled">
23 <span class="left">Hello</span>
24 <span class="right">World</span>
25 </span>
26 </div>
27 <div id="console"></div>
28 </body>
29 <script>
30 description('To manually test, hover between the two words to see if background color turns green.');
31
32 var rect = document.getElementById('culled').getBoundingClientRect();
33 element = document.elementFromPoint(rect.left + rect.width/2, rect.top + rect.he ight/2);
34 shouldBeEqualToString('element.id', 'culled');
35 </script>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/hittesting/culled-inline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698