blob: 2d4fa03ac1cf8498287aa86f722d6418e31cad54 [file] [log] [blame]
<!DOCTYPE html>
| This is a simple relative positioning test which checks that the element
| is offset from its standard in-flow position, and does not affect the
| layout of surrounding elements in the flow.
.box {
width: 50px;
height: 50px;
background-color: rgb(100, 100, 255);
.position-relative {
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>