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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/filter-repaint-on-accelerated-layer.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 <!-- Based on fast/repaint/filter-repaint-on-accelerated-layer.html --> 1 <!-- Based on fast/repaint/filter-repaint-on-accelerated-layer.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <style> 3 <style>
4 div { 4 div {
5 width: 200px; 5 width: 200px;
6 height: 200px; 6 height: 200px;
7 } 7 }
8 8
9 .blur { 9 .blur {
10 -webkit-filter: blur(10px); 10 -webkit-filter: blur(10px);
11 } 11 }
12 12
13 .accelerated { 13 .accelerated {
14 transform: translateZ(0); 14 transform: translateZ(0);
15 } 15 }
16 16
17 #resize { 17 #resize {
18 background-color: green; 18 background-color: green;
19 } 19 }
20 </style> 20 </style>
21 21
22 <div class="blur"> 22 <div class="blur">
23 <div class="accelerated" id="resize"></div> 23 <div class="accelerated" id="resize"></div>
24 </div> 24 </div>
25 25
26 <script src="resources/paint-invalidation-test.js"></script> 26 <script src="resources/paint-invalidation-test.js"></script>
27 <script> 27 <script>
28 window.expectedPaintInvalidationObjects = [
29 "LayoutBlockFlow DIV id='resize' class='accelerated'",
30 ];
31 function paintInvalidationTest() { 28 function paintInvalidationTest() {
32 var resizeElement = document.getElementById("resize"); 29 var resizeElement = document.getElementById("resize");
33 resizeElement.style.width = "100px"; 30 resizeElement.style.width = "100px";
34 } 31 }
35 window.onload = runPaintInvalidationTest; 32 window.onload = runPaintInvalidationTest;
36 </script> 33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698