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

Side by Side Diff: LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.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 <div style="height: 800px; width: 800px; background-color: lightgray; -webkit-tr ansform:translateZ(0)"> 2 <div style="height: 800px; width: 800px; background-color: lightgray; transform: translateZ(0)">
3 </div> 3 </div>
4 <div style="position:absolute; top: 0px; height: 200px; width: 200px"> 4 <div style="position:absolute; top: 0px; height: 200px; width: 200px">
5 </div> 5 </div>
6 <div style="position:absolute; top: 400px; left: 400px; height: 200px; width: 20 0px; background-color: lightblue"> 6 <div style="position:absolute; top: 400px; left: 400px; height: 200px; width: 20 0px; background-color: lightblue">
7 <div id="imgElement" style="height: 200px; width: 200px; background-color: lig htblue"> 7 <div id="imgElement" style="height: 200px; width: 200px; background-color: lig htblue">
8 </div> 8 </div>
9 </div> 9 </div>
10 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 10 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
11 <script> 11 <script>
12 // Test that a repaint for the rect containing the changed background image is i ssued in the coordinate space of the 12 // Test that a repaint for the rect containing the changed background image is i ssued in the coordinate space of the
13 // squashing layer, *not* local to the div with the background image on it. 13 // squashing layer, *not* local to the div with the background image on it.
14 14
15 if (window.internals) 15 if (window.internals)
16 internals.settings.setLayerSquashingEnabled(true); 16 internals.settings.setLayerSquashingEnabled(true);
17 17
18 function repaintTest() { 18 function repaintTest() {
19 var imgElement = document.querySelector("#imgElement"); 19 var imgElement = document.querySelector("#imgElement");
20 imgElement.style.backgroundImage = "url('data:image/gif;base64,R0lGODdhAgACA IABAAAAAP///ywAAAAAAgACAAACA0QCBQA7')"; 20 imgElement.style.backgroundImage = "url('data:image/gif;base64,R0lGODdhAgACA IABAAAAAP///ywAAAAAAgACAAACA0QCBQA7')";
21 } 21 }
22 runRepaintTest(); 22 runRepaintTest();
23 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698