blob: 5de5100e21ec0047fb503941c95cae6bde89cc47 [file] [log] [blame]
<!DOCTYPE html>
| This is a simple relative positioning test which checks that the element,
| with a display of inline, is offset from its standard in-flow position,
| and does not affect the layout of surrounding elements in the flow.
body {
font-family: Roboto;
font-size: 50px;
font-weight: bold;
.with-offset {
position: relative;
left: 20px;
top: 20px;
<div>Hello <span class="with-offset">Olleh</span> Hello</div>