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

Side by Side Diff: LayoutTests/transforms/3d/hit-testing/hover-rotated-negative-z.html

Issue 81153002: Fix hover area for divs with css transforms Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: adding layout test that fails with this approach. Created 7 years, 1 month 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 | LayoutTests/transforms/3d/hit-testing/hover-rotated-negative-z-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 <html>
2 <head>
3 <title>Test - Issue #321959: Fix hover area for divs with css tr ansforms</title>
4 <style>
5 #transformed {
6 -webkit-transform: translateY(50px) rotateX(20de g) rotateZ(10deg);
7 border: solid 5px rgba(128,128,128,0.5);
8 padding: 10px;
9 margin: 15px;
10 }
11 #transformed:hover {
12 box-shadow: 0px 0px 0px 10px rgba(0,128,0,0.5);
13 }
14 #parent {
15 outline: dotted 1px #888;
16 }
17 #transformed, #parent {
18 width: 600px;
19 height: 150px;
20 }
21 </style>
22
23 <script src="resources/hit-test-utils.js"></script>
24 <script>
25 const hitTestData = [
26 { 'point': [70, 70], 'target' : 'transformed' },
27 { 'point': [630, 130], 'target' : 'transformed' },
28 { 'point': [40, 130], 'target' : 'transformed' } ,
29 { 'point': [620, 270], 'target' : 'transformed' }
30 ];
31
32 window.addEventListener('load', runTest, false);
33 </script>
34 </head>
35 <body id="body">
36 <div id="parent"><div id="transformed">transformed</div></div>
37
38 <p>Test passes if the hover state of a transformed div is activa ted on the entire surface of the div.</p>
39
40 <div id="results"></div>
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/transforms/3d/hit-testing/hover-rotated-negative-z-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698