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

Side by Side Diff: LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.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 <style> 4 <style>
5 .container { 5 .container {
6 » -webkit-transform: translateZ(0); 6 transform: translateZ(0);
7 » transform: translateZ(0); 7 position: absolute;
8 » position: absolute; 8 top: 100px;
9 » top: 100px; 9 left:100.5px;
10 » left:100.5px; 10 background-color: red;
11 » background-color: red;
12 } 11 }
13 12
14 #target { 13 #target {
15 » position: absolute; 14 position: absolute;
16 » left: 0px; 15 left: 0px;
17 » width: 10px; 16 width: 10px;
18 » height: 10px; 17 height: 10px;
19 » border: 2px solid red; 18 border: 2px solid red;
20 } 19 }
21 20
22 #target.green { 21 #target.green {
23 » border-color: green; 22 border-color: green;
24 } 23 }
25 </style> 24 </style>
26 <script src="resources/text-based-repaint.js" type="text/javascript"></script> 25 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
27 </head> 26 </head>
28 <body onload="runRepaintTest();"> 27 <body onload="runRepaintTest();">
29 <div class="container"> 28 <div class="container">
30 <div id="target"> 29 <div id="target">
31 </div> 30 </div>
32 </div> 31 </div>
33 <script> 32 <script>
34 // This test ensures that children of a composited element with a sub-pixel offs et are properly repainted. 33 // This test ensures that children of a composited element with a sub-pixel offs et are properly repainted.
35 // The box should have a fully green border. 34 // The box should have a fully green border.
36 if (window.testRunner) 35 if (window.testRunner)
37 testRunner.dumpAsTextWithPixelResults(); 36 testRunner.dumpAsTextWithPixelResults();
38 function repaintTest() { 37 function repaintTest() {
39 » var target = document.getElementById('target'); 38 var target = document.getElementById('target');
40 » target.classList.add('green'); 39 target.classList.add('green');
41 } 40 }
42 </script> 41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698