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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/background-shorthand-with-gradient-and-height-changes-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="resources/text-based-repaint.js"></script>
4 3
5 <style> 4 <style>
6 #outer { 5 #outer {
7 padding-top: 200px; 6 padding-top: 200px;
8 /* background-size is implicitly set to initial via the background shorthand . */ 7 /* background-size is implicitly set to initial via the background shorthand . */
9 background:-webkit-gradient( 8 background:-webkit-gradient(
10 linear, 9 linear,
11 left top, 10 left top,
12 left bottom, 11 left bottom,
13 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) 12 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1))
14 ); 13 );
15 } 14 }
16 15
17 #inner { 16 #inner {
18 height: 100px; 17 height: 300px;
19 } 18 }
20 </style> 19 </style>
21 20
22 <script>
23 //This test verifies that gradient background gets repainted properly after chil d box height change.
24
25 function repaintTest() {
26 document.getElementById('inner').style.height = 300 + 'px';
27 }
28 </script>
29 </head> 21 </head>
30 <body onload='runRepaintTest();'> 22 <body'>
31 <div id='outer'> 23 <div id='outer'>
32 <div id='inner'> 24 <div id='inner'>
33 </div> 25 </div>
34 </div> 26 </div>
35 </body> 27 </body>
36 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698