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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/display-none-iframe-has-no-animation.html

Issue 2743053003: [Reland #1] Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: rebaseline. Created 3 years, 8 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 <script type="text/javascript">
3 function go() {
4 if (window.testRunner) {
5 testRunner.waitUntilDone();
6 }
7 // Wait a couple of frames for the animation inside the iframe to progress.
8 requestAnimationFrame(function() {
9 requestAnimationFrame(function() {
10 var iframe = document.getElementById("iframe");
11 iframe.style.display = "block";
12 var innerDoc = iframe.contentDocument;
13 var target = innerDoc.getElementById('target');
14
15 // If the animation has been running, then we expect "left" to be
16 // non-zero.
17 if (parseInt(getComputedStyle(target).left, 10) == 0)
18 document.write("PASS");
19 else
20 document.write("FAIL");
21 if (window.testRunner) {
22 testRunner.dumpAsText();
23 testRunner.notifyDone();
24 }
25 });
26 });
27 };
28 </script>
29 <body onload="go()">
30 <p>
31 Tests that children of a display:none iframe do not run animations.
32 </p>
33 <iframe id="iframe" style="display:none" src="resources/frame_with_animation.h tml"></iframe>
34 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698