Index: LayoutTests/fast/multicol/dynamic/insert-spanner-pseudo-before-following-content.html |
diff --git a/LayoutTests/fast/multicol/dynamic/insert-spanner-pseudo-before-following-content.html b/LayoutTests/fast/multicol/dynamic/insert-spanner-pseudo-before-following-content.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fb37c4057899ee518e7656e339a038f1596c3524 |
--- /dev/null |
+++ b/LayoutTests/fast/multicol/dynamic/insert-spanner-pseudo-before-following-content.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<script> |
+ onload = function() { |
+ document.body.offsetTop; // trigger layout |
+ document.getElementById('elm').className = "x"; |
+ } |
+</script> |
+<style> |
+ .x::before { display:block; -webkit-column-span:all; background:yellow; content:".........."; } |
+</style> |
+<p>Test adding a ::before pseudo element. The DOM element is preceded by content.</p> |
+<p>There should be three rectangles with identical sizes below. The first and third one |
+ should be blue with nothing inside. The second one should be yellow with some dots |
+ inside.</p> |
+<div style="-webkit-columns:4; line-height:100px; background:blue;"> |
+ <span> </span> |
+ <span id="elm"> </span> |
+</div> |