| <!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. |
| | https://www.w3.org/TR/CSS21/visuren.html#relative-positioning |
| --> |
| <html> |
| <head> |
| <style> |
| body { |
| font-family: Roboto; |
| font-size: 50px; |
| font-weight: bold; |
| } |
| |
| .with-offset { |
| position: relative; |
| left: 20px; |
| top: 20px; |
| } |
| </style> |
| </head> |
| |
| <body> |
| <div>Hello <span class="with-offset">Olleh</span> Hello</div> |
| </body> |
| </html> |