blob: 5fdb3b96794dd46727e11d4adef838e02f2f5488 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Absolutely positioned elements should not participate in layout though their
| static position will be set as if they were layed out. This test checks
| that an absolute element that ordinarily would have caused a line break
| within an inline box does not affect layout, and also that the absolute
| element *does* appear to follow a line break.
-->
<html>
<head>
<style>
.absolute-block {
position: absolute;
width: 50px;
height: 100px;
background-color: rgb(255, 0, 0);
}
.static-block {
position: static;
width: 100px;
height: 50px;
background-color: rgb(0, 255, 0);
}
</style>
</head>
<body>
<span>
This is an inline formatting context block and this:
<div class="absolute-block">
</div>
is an absolutely positioned div in the middle of it.
</span>
<span>
Another span.
</span>
<div class="static-block">
</div>
</body>
</html>