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> |