Chromium Code Reviews| 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..2208588b8ece5197a4885c6fa4a264bef1d9be3f |
| --- /dev/null |
| +++ b/LayoutTests/fast/block/float/br-with-clear-3.html |
| @@ -0,0 +1,25 @@ |
| +<!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> |
| +window.onload = function() { |
|
leviw_travelin_and_unemployed
2015/05/11 00:25:29
I don't suspect the onload handler is needed here
changseok
2015/05/11 15:56:46
You're right. Removed onload.
|
| + document.body.offsetTop; |
| + document.querySelector('a').style.fontSize = '1.5em'; |
| +} |
| +</script> |