Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta name="viewport" content="width=device-width"> | |
| 5 <style> | |
| 6 ::-webkit-scrollbar { | |
| 7 width: 0px; | |
| 8 height: 0px; | |
| 9 } | |
| 10 | |
| 11 body, html { | |
| 12 width: 100%; | |
| 13 height: 100%; | |
| 14 } | |
| 15 | |
| 16 body { | |
| 17 margin: 0px; | |
| 18 } | |
| 19 | |
| 20 #spacer { | |
| 21 position: absolute; | |
| 22 left: 3000px; | |
| 23 top: 3000px; | |
| 24 width: 1px; | |
| 25 height: 1px; | |
| 26 } | |
| 27 | |
| 28 #target { | |
| 29 width: 50%; | |
| 30 height: 50%; | |
| 31 background-color: red; | |
| 32 position: absolute; | |
| 33 left: 200%; | |
| 34 top: 200%; | |
| 35 } | |
| 36 | |
| 37 #container { | |
| 38 position: absolute; | |
| 39 left: 0px; | |
| 40 top: 0px; | |
| 41 width: 100%; | |
| 42 height: 100%; | |
| 43 overflow: auto; | |
| 44 } | |
| 45 </style> | |
| 46 </head> | |
| 47 | |
| 48 <body> | |
| 49 <div id="container"> | |
| 50 <div id="target"></div> | |
| 51 <div id="spacer"></div> | |
| 52 </div> | |
| 53 </body> | |
| 54 </html> | |
| OLD | NEW |