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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/reflection-invalidation-positioned-child-expected.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <style> 2 <style>
3 body {
4 margin: 0;
5 }
3 #box { 6 #box {
4 width: 100px; 7 width: 100px;
5 height: 100px; 8 height: 100px;
6 background-color: green; 9 background-color: green;
7 -webkit-filter: drop-shadow(250px 50px 10px red); 10 -webkit-box-reflect: below 20px;
8 } 11 }
9 #positioned { 12 #positioned {
10 position: absolute; 13 position: absolute;
11 top: 400px; 14 top: 10px;
12 left: 400px; 15 left: 400px;
13 width: 50px; 16 width: 50px;
14 height: 50px; 17 height: 50px;
15 background-color: blue; 18 background-color: blue;
16 } 19 }
17 </style> 20 </style>
18 <!-- 21 <!--
19 Tests paint invalidation of positioned object when its ancestor changes filter. 22 Tests paint invalidation of positioned object when its ancestor changes reflecti on.
20 Passes if the all drop shadows change to green. 23 Passes if there is no red.
21 --> 24 -->
22 <div id="box"> 25 <div id="box">
23 <div id="positioned"></div> 26 <div id="positioned"></div>
24 </div> 27 </div>
25 <script src="resources/text-based-repaint.js"></script>
26 <script>
27 function repaintTest() {
28 box.style.webkitFilter = 'drop-shadow(300px 100px 10px green)';
29 }
30 runRepaintTest();
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698