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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html

Issue 1553373002: Canvas2d: Fix incorrect alignment of hit region when applied css/zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed layout test 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>HitRegion CSS Size/Transform Test</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="./resources/test-helpers.js"></script>
6 <canvas width="400" height="400"></canvas>
7 <style>
8
9 body {
10 margin : 0px;
11 padding : 0px;
12 }
13
14 canvas {
15 width : 200px;
16 height : 200px;
17 padding : 100px;
Justin Novosad 2016/01/07 17:31:04 It would make sense separate this test into indivi
zino 2016/01/11 13:53:23 Done.
18 border : 20px;
19 transform : rotate(45deg);
20 }
21
22 </style>
23 <script>
24
25 var canvas = document.querySelector('canvas');
26 var context = canvas.getContext('2d');
27
28 createFace(context);
29
30 coroutine(function*() {
31 setup({ explicit_done : true, explicit_timeout : true });
32
33 generate_tests(assert_equals, [
34 [ 'face', yield clickOrTouch(195, 140), 'face' ],
35 [ 'nose', yield clickOrTouch(204, 194), 'nose' ],
36 [ 'mouth', yield clickOrTouch(194, 225), 'mouth' ],
37 [ 'eye', yield clickOrTouch(205, 156), 'eye' ],
38 [ 'eye', yield clickOrTouch(245, 197), 'eye' ],
39 [ 'face', yield clickOrTouch(148, 217), 'face' ],
40 [ 'null', yield clickOrTouch(146, 317), null ]
41 ]);
42
43 done();
44 });
45
46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698