blob: 171a8e9371b75adf48b571658deed2d40b31418f [file] [log] [blame]
<!DOCTYPE html>
<!--
| This is a simple absolute positioning test which checks that the element,
| with an inline box acestor, is offset from its standard in-flow position,
| and does not affect the layout of surrounding elements in the flow.
| https://www.w3.org/TR/CSS21/visuren.html#relative-positioning
-->
<html>
<head>
<style>
body {
font-family: Roboto;
font-size: 50px;
font-weight: bold;
}
.parent {
background-color: #2196f3;
position: relative;
left: 50px;
top: 50px;
}
.with-offset {
background-color: #3f51b5;
position: absolute;
left: 50px;
top: 50px;
}
</style>
</head>
<body>
<span class="parent">Hello <span class="with-offset">Olleh</span> Hello</span>
</body>
</html>