9 background-color: green;
14 background-color: rgba(255, 255, 255, 1);
15 -webkit-transition: opacity 1s;
21 background-color: red;
23 -webkit-transition: -webkit-transform 1s;
34 .overlay.transparent .page {
35 transform: scale(1) translateY(0px);
39 <script type="text/javascript" charset="utf-8">
42 var solid_color_overlay = document.getElementById("solid_color_overlay");
43 solid_color_overlay.removeAttribute('hidden');
45 var popup = document.getElementById("popup");
46 popup.removeAttribute('hidden');
48 // NOTE: This is a hacky way to force the container to layout which
49 // will allow us to trigger the webkit transition.
50 // See crbug.com/324685
51 solid_color_overlay.scrollTop;
52 solid_color_overlay.classList.remove('transparent');
54 // dump the pixel in the middle of the transition
55 if (window.internals) {
56 window.internals.forceCompositingUpdate(document);
57 window.internals.pauseAnimations(0.5);
59 triggerPixelResults();
62 function triggerPixelResults()
64 parent.postMessage("TriggerPixelResults", '*');
67 window.addEventListener('load', runTest, false);
72 <div id="solid_color_overlay" class="overlay transparent" hidden=true>
73 <div id="popup" class="page" hidden=true></div>