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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/repaint-overflow-scrolled-squashed-content.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 compositing/squashing/repaint-overflow-scrolled-squashed-content.h tml -->
1 <!doctype html> 2 <!doctype html>
2 <div style="position: absolute; overflow:scroll; width:200px; height:200px"> 3 <div style="position: absolute; overflow:scroll; width:200px; height:200px">
3 <div id="foo2" style="height: 1000px; width: 150px; background: lightblue; tr ansform: translateZ(0) "></div> 4 <div id="foo2" style="height: 1000px; width: 150px; background: lightblue; tr ansform: translateZ(0) "></div>
4 <div id="foo" style="height: 1000px; width: 100px; position: absolute; top: 0p x; left: 0px; background: lightgray"></div> 5 <div id="foo" style="height: 1000px; width: 100px; position: absolute; top: 0p x; left: 0px; background: lightgray"></div>
5 </div> 6 </div>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 7 <script src="resources/paint-invalidation-test.js"></script>
7 <script> 8 <script>
8 // This test verifies that a repaint request for a squashed layer that is inside of a scrolling container and much taller 9 // This test verifies that a repaint request for a squashed layer that is inside of a scrolling container and much taller
9 // than the viewport does not receive an incorrect paint invalidation rect when it is invalidated. In particular, the invalidation 10 // than the viewport does not receive an incorrect paint invalidation rect when it is invalidated. In particular, the invalidation
10 // rect should not be clipped to the visible viewport. 11 // rect should not be clipped to the visible viewport.
11 12
12 function repaintTest() { 13 window.expectedPaintInvalidationObjects = [
14 "LayoutBlockFlow (positioned) DIV id='foo'",
15 ];
16 function paintInvalidationTest() {
13 document.querySelector("#foo").style.background = 'red'; 17 document.querySelector("#foo").style.background = 'red';
14 } 18 }
15 19
16 runRepaintTest(); 20 runPaintInvalidationTest();
17 </script> 21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698