OLD | NEW |
1 <style> | 1 <style> |
2 #test { | 2 #test { |
3 overflow: hidden; /* Required to reproduce. */ | 3 overflow: hidden; /* Required to reproduce. */ |
4 } | 4 } |
5 | 5 |
6 #test::before { | 6 #test::before { |
7 content: ""; /* Some content required to reproduce. */ | 7 content: ""; /* Some content required to reproduce. */ |
8 opacity: 0.999; /* Required to reproduce. */ | 8 opacity: 0.999; /* Required to reproduce. */ |
9 display: block; | 9 display: block; |
10 width: 100px; | 10 width: 100px; |
11 height: 100px; | 11 height: 100px; |
12 background-color: green; | 12 background-color: green; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <div id="test" style="display: none"></div> | 15 <div id="test" style="display: none"></div> |
| 16 <script src="../../resources/run-after-display.js"></script> |
16 <script type="text/javascript"> | 17 <script type="text/javascript"> |
17 function test() | 18 if (window.testRunner) |
18 { | 19 testRunner.waitUntilDone(); |
| 20 runAfterDisplay(function() { |
19 document.getElementById("test").style.display = "block"; | 21 document.getElementById("test").style.display = "block"; |
20 } | 22 if (window.testRunner) |
21 | 23 testRunner.notifyDone(); |
22 if (!window.testRunner) | 24 }); |
23 setTimeout(test, 0); | |
24 else { | |
25 document.body.offsetTop; | |
26 testRunner.display(); | |
27 test(); | |
28 } | |
29 </script> | 25 </script> |
OLD | NEW |