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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/stacking-context-lost.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() 4 function repaintTest()
5 { 5 {
6 outer.style.zIndex = 'auto'; 6 outer.style.zIndex = 'auto';
7 inner.style.display = 'none'; 7 inner.style.display = 'none';
8 } 8 }
9 9
10 runRepaintAndPixelTest(); 10 runRepaintAndPixelTest();
11 </script> 11 </script>
12 <div style="position: absolute; top: 10px; left: 10px; height: 100px;"> 12 <div style="position: absolute; top: 10px; left: 10px; height: 100px;">
13 There should be one green box below. A red box may be seen briefly, but the page should settle 13 There should be one green box below. A red box may be seen briefly, but the page should settle
14 on showing only the one green box. Intent is to ensure that we accurately re paint the red box 14 on showing only the one green box. Intent is to ensure that we accurately re paint the red box
15 region when (1) the green box containing the red box ceases to be a stacking context, and (2) 15 region when (1) the green box containing the red box ceases to be a stacking context, and (2)
16 the red box is hidden. 16 the red box is hidden.
17 </div> 17 </div>
18 <div id="outer" style="background-color: green; height: 100px; width: 100px; bac kface-visibility: hidden; position: relative; z-index: 1; top: 270px; left: 270p x;"> 18 <div id="outer" style="background-color: green; height: 100px; width: 100px; bac kface-visibility: hidden; position: relative; z-index: 1; top: 270px; left: 270p x;">
19 <div id="inner" style="background-color: red; height: 100px; width: 100px; p osition: relative;"> 19 <div id="inner" style="background-color: red; height: 100px; width: 100px; p osition: relative;">
20 </div> 20 </div>
21 </div> 21 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698