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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/transform-replaced-shadows.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/transform-replaced-shadows.html --> 1 <!-- Based on fast/repaint/transform-replaced-shadows.html -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Scaling and box-shadow</title> 4 <title>Scaling and box-shadow</title>
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 #box { 6 #box {
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 margin: 20px; 9 margin: 20px;
10 background-color: gray; 10 background-color: gray;
11 -webkit-transform-origin: top left; 11 -webkit-transform-origin: top left;
12 -webkit-box-shadow: 0px 20px 20px black; 12 -webkit-box-shadow: 0px 20px 20px black;
13 transform: scale(2); 13 transform: scale(2);
14 } 14 }
15 15
16 #box.smaller { 16 #box.smaller {
17 transform: scale(1); 17 transform: scale(1);
18 } 18 }
19 </style> 19 </style>
20 20
21 <script src="resources/paint-invalidation-test.js" type="text/javascript" char set="utf-8"></script> 21 <script src="resources/paint-invalidation-test.js" type="text/javascript" char set="utf-8"></script>
22 <script type="text/javascript" charset="utf-8"> 22 <script type="text/javascript" charset="utf-8">
23 window.expectedPaintInvalidationObjects = [
24 "LayoutImage IMG id='box' class='smaller'",
25 ];
26 function paintInvalidationTest() 23 function paintInvalidationTest()
27 { 24 {
28 document.getElementById('box').className = 'smaller'; 25 document.getElementById('box').className = 'smaller';
29 } 26 }
30 </script> 27 </script>
31 </head> 28 </head>
32 <body onload="runPaintInvalidationTest()"> 29 <body onload="runPaintInvalidationTest()">
33 30
34 <img id="box"> 31 <img id="box">
35 32
36 </body> 33 </body>
37 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698