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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/push-block-with-first-line.html

Issue 1536663004: Need to repaint its ::first-line background when a block moves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Two tests even need manual rebaseline, since they already existed in TestExpectations. Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/repaint/push-block-with-first-line.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/push-block-with-first-line.html b/third_party/WebKit/LayoutTests/fast/repaint/push-block-with-first-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..f0a5848ea159b54d709a9120adebce62a7ae1fcd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/push-block-with-first-line.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<!--
+ Test that the ::first-line background is repainted at the new position when its block is moved.
+ There should be no red below.
+-->
+<script src="../../resources/ahem.js"></script>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/text-based-repaint.js"></script>
+<style>
+ body { font:20px Ahem; }
+ .test { color:green; }
+ .test::first-line { background:red; }
+</style>
+<div id="spacer" style="display:none; height:3em;"></div>
+<div class="test">JOCULAR</div>
+<script>
+repaintTest = function() {
+ document.getElementById("spacer").style.display = "block";
+}
+runAfterLayoutAndPaint(function() {
+ runRepaintTest();
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698