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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/resize-skewed.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/resize-skewed.html --> 1 <!-- Based on fast/repaint/resize-skewed.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV id='skewed'",
7 ];
8 function paintInvalidationTest() { 5 function paintInvalidationTest() {
9 document.getElementById('skewed').style.width = '200px'; 6 document.getElementById('skewed').style.width = '200px';
10 } 7 }
11 onload = runPaintInvalidationTest; 8 onload = runPaintInvalidationTest;
12 </script> 9 </script>
13 <style> 10 <style>
14 div { 11 div {
15 position: absolute; 12 position: absolute;
16 transform: skew(-45deg); 13 transform: skew(-45deg);
17 transform-origin: left top; 14 transform-origin: left top;
18 top: 50px; 15 top: 50px;
19 left: 500px; 16 left: 500px;
20 height: 500px; 17 height: 500px;
21 } 18 }
22 #skewed { 19 #skewed {
23 width: 100px; 20 width: 100px;
24 background-color: green; 21 background-color: green;
25 } 22 }
26 #indicator { 23 #indicator {
27 margin-left: 1px; 24 margin-left: 1px;
28 width: 198px; /* Narrower than the target to avoid anti-alias effect. */ 25 width: 198px; /* Narrower than the target to avoid anti-alias effect. */
29 background-color: red; 26 background-color: red;
30 } 27 }
31 </style> 28 </style>
32 Tests paint invalidation when a skewed element is resized. Passes if there is no red. 29 Tests paint invalidation when a skewed element is resized. Passes if there is no red.
33 <div id="indicator"></div> 30 <div id="indicator"></div>
34 <div id="skewed"></div> 31 <div id="skewed"></div>
35 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698