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

Side by Side Diff: content/test/data/accessibility/transition.html

Issue 815463006: Separating ARIA, HTML & event AX test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 <!--
3 This tests that location changes are sent when an element animates
4 using CSS transitions. The test animates the size of a button when
5 focused, then adds the magic text "Done" to the document when
6 the transition finishes. The WAIT-FOR directive below instructs
7 the test framework to keep waiting for accessibility events and
8 not diff the dump against the expectations until the text "Done"
9 appears in the dump.
10
11 @MAC-ALLOW:size=(400, 200)
12 @MAC-ALLOW:size=(600, 300)
13 @WIN-ALLOW:size=(400, 200)
14 @WIN-ALLOW:size=(600, 300)
15 @WAIT-FOR:Done
16 -->
17 <html>
18 <head>
19 <style>
20 body {
21 width: 800px;
22 height: 600px;
23 margin: 0;
24 padding: 0;
25 border: 0;
26 overflow: hidden;
27 }
28 #growbutton {
29 width: 400px;
30 height: 200px;
31 margin: 0;
32 padding: 0;
33 }
34 #growbutton:focus {
35 width: 600px;
36 height: 300px;
37 transition: all 0.1s ease-in-out;
38 }
39 </style>
40 </head>
41 <body>
42
43 <button id="growbutton">GrowButton</button>
44
45 <script>
46 var growButton = document.getElementById('growbutton');
47 var done = false;
48 growButton.addEventListener('webkitTransitionEnd', function() {
49 if (!done) {
50 document.body.appendChild(document.createTextNode('Done'));
51 done = true;
52 }
53 }, false);
54 growButton.focus();
55 </script>
56
57 </body>
58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698