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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/multicol-relpos-with-abspos.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/multicol-relpos-with-abspos.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
3 <script> 4 <script>
4 if (window.internals) 5 onload = runPaintInvalidationTest;
5 onload = runRepaintTest; 6 window.expectedPaintInvalidationObjects = [
6 else 7 "LayoutBlockFlow (positioned) DIV id='target'",
7 onclick = repaintTest; 8 ];
8 function repaintTest() { 9 function paintInvalidationTest() {
9 var target = document.getElementById('target'); 10 var target = document.getElementById('target');
10 target.style.visibility = 'visible'; 11 target.style.visibility = 'visible';
11 } 12 }
12 </script> 13 </script>
13 <div style="position:relative; -webkit-columns:4; -webkit-column-gap:10px; width :630px; height:40px; column-fill:auto;"> 14 <div style="position:relative; -webkit-columns:4; -webkit-column-gap:10px; width :630px; height:40px; column-fill:auto;">
14 <div id="target" style="position:absolute; width:20px; height:20px; right:0; bottom:0; visibility:hidden; background:green;"></div> 15 <div id="target" style="position:absolute; width:20px; height:20px; right:0; bottom:0; visibility:hidden; background:green;"></div>
15 </div> 16 </div>
16 <p>A green square should be seen above (if tested manually, you need to click fi rst).</p> 17 <p>A green rectangle should be seen above.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698