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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.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 <!-- Based on fast/repaint/transform-rotate-and-remove.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <title> 5 <title>
5 Test case for https://bugs.webkit.org/show_bug.cgi?id=61338 6 Test case for https://bugs.webkit.org/show_bug.cgi?id=61338
6 </title> 7 </title>
7 <style> 8 <style>
8 .rotated { 9 .rotated {
9 transform:rotate(50deg); 10 transform:rotate(50deg);
10 } 11 }
11 </style> 12 </style>
12 <script src="resources/text-based-repaint.js" type="text/javascript"></s cript> 13 <script src="resources/paint-invalidation-test.js" type="text/javascript "></script>
13 <script> 14 <script>
14 function repaintTest() { 15 window.expectedPaintInvalidationObjects = [
16 "LayoutBlockFlow DIV id='rel'",
17 "LayoutBlockFlow DIV id='rel'",
18 ];
19 function paintInvalidationTest() {
15 document.getElementById('rel').classList.remove('rotated'); 20 document.getElementById('rel').classList.remove('rotated');
16 } 21 }
17 </script> 22 </script>
18 </head> 23 </head>
19 <body onload="runRepaintTest()"> 24 <body onload="runPaintInvalidationTest()">
20 <!-- 25 <!--
21 <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=61338">61338</a >: Element not fully repainted after application and removal of transform </p> 26 <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=61338">61338</a >: Element not fully repainted after application and removal of transform </p>
22 <p> The test PASSES only if all the four borders of the box are displaye d in green</p> 27 <p> The test PASSES only if all the four borders of the box are displaye d in green</p>
23 --> 28 -->
24 <div id="rel" class="rotated" style="height:50px; width:200px; backgroun d-color:yellow ; border:10px solid green;"> </div> 29 <div id="rel" class="rotated" style="height:50px; width:200px; backgroun d-color:yellow ; border:10px solid green;"> </div>
25 </body> 30 </body>
26 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698