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

Side by Side Diff: LayoutTests/compositing/rtl/rtl-overflow-invalidation.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/run-after-display.js"></script> 4 <script src="../../resources/run-after-display.js"></script>
5 <style> 5 <style>
6 body { 6 body {
7 direction: rtl; 7 direction: rtl;
8 margin: 0px; 8 margin: 0px;
9 } 9 }
10 10
11 #layer { 11 #layer {
12 position: absolute; 12 position: absolute;
13 top: 50px; 13 top: 50px;
14 right: 50px; 14 right: 50px;
15 width: 100px; 15 width: 100px;
16 height: 100px; 16 height: 100px;
17 background-color: red; 17 background-color: red;
18 } 18 }
19 19
20 #root { 20 #root {
21 width: 1000px; 21 width: 1000px;
22 height: 1000px; 22 height: 1000px;
23 -webkit-transform:translateZ(0); 23 transform:translateZ(0);
24 } 24 }
25 </style> 25 </style>
26 <script> 26 <script>
27 function doTest() { 27 function doTest() {
28 if (window.testRunner) { 28 if (window.testRunner) {
29 testRunner.waitUntilDone(); 29 testRunner.waitUntilDone();
30 testRunner.dumpAsTextWithPixelResults(); 30 testRunner.dumpAsTextWithPixelResults();
31 } 31 }
32 runAfterDisplay(function() { 32 runAfterDisplay(function() {
33 // This test passes if this element is repainted correctly, even 33 // This test passes if this element is repainted correctly, even
34 // on a page that is composited and has horizontal overflow. 34 // on a page that is composited and has horizontal overflow.
35 var elem = document.getElementById("layer"); 35 var elem = document.getElementById("layer");
36 elem.style.backgroundColor = "green"; 36 elem.style.backgroundColor = "green";
37 if (window.testRunner) 37 if (window.testRunner)
38 testRunner.notifyDone(); 38 testRunner.notifyDone();
39 }); 39 });
40 } 40 }
41 window.addEventListener('load', doTest, false); 41 window.addEventListener('load', doTest, false);
42 </script> 42 </script>
43 <body> 43 <body>
44 <div id="layer" class=""></div> 44 <div id="layer" class=""></div>
45 <div id="root"></div> 45 <div id="root"></div>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.html ('k') | LayoutTests/compositing/rtl/rtl-relative.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698