blob: 8f38ae4a85c671ed0ae6da3b7cd208d14a194222 [file] [log] [blame]
<!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"><span></span>
</p>
<script>
document.body.offsetTop;
document.querySelector('a').style.fontSize = '1.5em';
</script>