haraken@chromium.org | 042c323 | 2012-01-13 09:17:42 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <style> |
| 4 | .parent { text-decoration: underline; position: relative; } |
| 5 | .static { position: static; } |
| 6 | .relative { position: relative; } |
| 7 | .float { float: right; } |
| 8 | .abspos { position: absolute; top: 4em; } |
| 9 | .fixed { position: fixed; top: 6em; } |
| 10 | </style> |
| 11 | </head> |
| 12 | <body> |
| 13 | <div class="parent"> |
| 14 | <div class="static">The static-positioned text should be underlined.</div> |
| 15 | <div class="relative">The relative-positioned text should be underlined.</div> |
| 16 | <div class="float">The floating-positioned text should NOT be underlined.</div> |
| 17 | <div class="abspos">The absolutely-positioned text should NOT be underlined.</div> |
| 18 | <div class="fixed">The fixed-positioned text should NOT be underlined.</div> |
| 19 | </div> |
| 20 | </body> |
| 21 | </html> |