Index: LayoutTests/fast/block/float/br-with-clear-3.html |
diff --git a/LayoutTests/fast/block/float/br-with-clear-3.html b/LayoutTests/fast/block/float/br-with-clear-3.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..76ff0a715ab01e281d2e4e7ef7d0d10ef108c1eb |
--- /dev/null |
+++ b/LayoutTests/fast/block/float/br-with-clear-3.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<style> |
+.green { |
+ background: green; |
+ float: right; |
+ width: 50%; |
+ height: 100px; |
+} |
+.yellow { |
+ background: yellow; |
+} |
+</style> |
+<p>Test passes if the height of yellow box is identical with that of green box.</p> |
+<div class='green'>Floating box</div> |
+<p class='yellow'> |
+ <a href='#'>Anchor</a><br> |
+ Text line. |
+ <br style="clear:both"> |
+</p> |
+<script> |
+document.body.offsetTop; |
+document.querySelector('a').style.fontSize = '1.5em'; |
+</script> |