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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/push-block-with-first-line.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 <!-- 2 <!--
3 Test that the ::first-line background is repainted at the new position when its block is moved. 3 Test that the ::first-line background is repainted at the new position when its block is moved.
4 There should be no red below. 4 There should be no red below.
5 --> 5 -->
6 <script src="../../resources/ahem.js"></script> 6 <script src="../../resources/ahem.js"></script>
7 <script src="../../resources/run-after-layout-and-paint.js"></script> 7 <script src="../../resources/run-after-layout-and-paint.js"></script>
8 <script src="resources/text-based-repaint.js"></script> 8 <script src="resources/text-based-repaint.js"></script>
9 <style> 9 <style>
10 body { font:20px Ahem; } 10 body { font:20px Ahem; }
11 .test { color:green; } 11 .test { color:green; }
12 .test::first-line { background:red; } 12 .test::first-line { background:red; }
13 </style> 13 </style>
14 <div id="spacer" style="display:none; height:3em;"></div> 14 <div id="spacer" style="display:none; height:3em;"></div>
15 <div class="test">JOCULAR</div> 15 <div class="test">JOCULAR</div>
16 <script> 16 <script>
17 repaintTest = function() { 17 repaintTest = function() {
18 document.getElementById("spacer").style.display = "block"; 18 document.getElementById("spacer").style.display = "block";
19 } 19 }
20 runAfterLayoutAndPaint(function() { 20 runAfterLayoutAndPaint(function() {
21 runRepaintTest(); 21 runRepaintAndPixelTest();
22 }); 22 });
23 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698