blob: 539771636e8dce1d422f822c14c7290833561d35 [file] [log] [blame]
<!DOCTYPE html>
| This is a simple relative positioning test which checks that the element,
| with a display of inline-block, is offset from its standard in-flow position,
| and does not affect the layout of surrounding elements in the flow.
.box {
display: inline-block;
width: 50px;
height: 50px;
background-color: rgb(100, 100, 255);
.position-relative {
display: inline-block;
position: relative;
left: 25px;
top: 25px;
background-color: rgb(255, 100, 100);
<div class="box"></div>
<div class="box position-relative"></div>
<div class="box"></div>