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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/reflection-invalidation-after-display.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/reflection-invalidation-after-display.html --> 1 <!-- Based on fast/repaint/reflection-invalidation-after-display.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 position: absolute; 10 position: absolute;
11 left: 300px; 11 left: 300px;
12 } 12 }
13 .reflected { 13 .reflected {
14 -webkit-box-reflect: right 50px; 14 -webkit-box-reflect: right 50px;
15 } 15 }
16 </style> 16 </style>
17 <!-- 17 <!--
18 This test checks that we correctly invalidate reflection when they are remov ed. 18 This test checks that we correctly invalidate reflection when they are remov ed.
19 There should be only one green box below. 19 There should be only one green box below.
20 --> 20 -->
21 <div class="green reflected box" id="box"></div> 21 <div class="green reflected box" id="box"></div>
22 <script src="resources/paint-invalidation-test.js"></script> 22 <script src="resources/paint-invalidation-test.js"></script>
23 <script> 23 <script>
24 window.expectedPaintInvalidationObjects = [
25 "LayoutBlockFlow (positioned) DIV id='box' class='green box'",
26 "LayoutBlockFlow (positioned) DIV id='box' class='green box'",
27 ];
28 function paintInvalidationTest() { 24 function paintInvalidationTest() {
29 var box = document.getElementById('box'); 25 var box = document.getElementById('box');
30 box.classList.toggle('reflected'); 26 box.classList.toggle('reflected');
31 } 27 }
32 window.onload = runPaintInvalidationTest; 28 window.onload = runPaintInvalidationTest;
33 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698