Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / test / data / accessibility / transition.html
blobdf42c6aff0333a59c95b1a741537803bc702b934
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.
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;
28 #growbutton {
29 width: 400px;
30 height: 200px;
31 margin: 0;
32 padding: 0;
34 #growbutton:focus {
35 width: 600px;
36 height: 300px;
37 transition: all 0.1s ease-in-out;
39 </style>
40 </head>
41 <body>
43 <button id="growbutton">GrowButton</button>
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;
53 }, false);
54 growButton.focus();
55 </script>
57 </body>
58 </html>