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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/filter-invalidation-with-composited-container-change.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-invalidation-with-composited-container-change. html --> 1 <!-- Based on fast/repaint/filter-invalidation-with-composited-container-change. html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <style> 3 <style>
4 .green { 4 .green {
5 background-color: green; 5 background-color: green;
6 } 6 }
7 .box { 7 .box {
8 width: 200px; 8 width: 200px;
9 height: 200px; 9 height: 200px;
10 } 10 }
11 .drop-shadowed { 11 .drop-shadowed {
12 -webkit-filter: drop-shadow(100px 100px 10px red); 12 -webkit-filter: drop-shadow(100px 100px 10px red);
13 } 13 }
14 .blurry { 14 .blurry {
15 -webkit-filter: blur(10px); 15 -webkit-filter: blur(10px);
16 transform: translateZ(0); 16 transform: translateZ(0);
17 } 17 }
18 </style> 18 </style>
19 <!-- 19 <!--
20 This test checks that we correctly invalidate filters along with a paint inv alidation container change. 20 This test checks that we correctly invalidate filters along with a paint inv alidation container change.
21 There should be no red below. 21 There should be no red below.
22 --> 22 -->
23 <div class="green drop-shadowed box" id="box"></div> 23 <div class="green drop-shadowed box" id="box"></div>
24 <script src="resources/paint-invalidation-test.js"></script> 24 <script src="resources/paint-invalidation-test.js"></script>
25 <script> 25 <script>
26 window.expectedPaintInvalidationObjects = [
27 "LayoutBlockFlow DIV id='box' class='green box blurry'",
28 ];
29 function paintInvalidationTest() { 26 function paintInvalidationTest() {
30 var box = document.getElementById('box'); 27 var box = document.getElementById('box');
31 box.classList.toggle('drop-shadowed'); 28 box.classList.toggle('drop-shadowed');
32 box.classList.toggle('blurry'); 29 box.classList.toggle('blurry');
33 } 30 }
34 runPaintInvalidationTest(); 31 runPaintInvalidationTest();
35 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698