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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/remove-inline-block-descendant-of-flex.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 document.getElementById('inline-block-1').style.display = 'none'; 5 document.getElementById('inline-block-1').style.display = 'none';
6 } 6 }
7 onload = runRepaintTest; 7 onload = runRepaintAndPixelTest;
8 </script> 8 </script>
9 <style> 9 <style>
10 body { 10 body {
11 margin : 0; 11 margin : 0;
12 } 12 }
13 .item { 13 .item {
14 display: inline-block; 14 display: inline-block;
15 height: 100px; 15 height: 100px;
16 width: 100px; 16 width: 100px;
17 } 17 }
18 </style> 18 </style>
19 Tests paint invalidation of inline blocks following an inline-block that is remo ved. 19 Tests paint invalidation of inline blocks following an inline-block that is remo ved.
20 Passes if there is only one green square at the top-left corner of the window. 20 Passes if there is only one green square at the top-left corner of the window.
21 <div style="display: flex; height: 300px; position: absolute; top: 100px"> 21 <div style="display: flex; height: 300px; position: absolute; top: 100px">
22 <div style="display: flex"> 22 <div style="display: flex">
23 <div style="width: 100px"> 23 <div style="width: 100px">
24 <div id="inline-block-1" class="item" style="background-color: red"><br></ div> 24 <div id="inline-block-1" class="item" style="background-color: red"><br></ div>
25 <div id="inline-block-2" class="item" style="background-color: green"><br> </div> 25 <div id="inline-block-2" class="item" style="background-color: green"><br> </div>
26 </div> 26 </div>
27 </div> 27 </div>
28 </div> 28 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698