dino@apple.com | 7c47958 | 2008-07-10 19:05:10 +0000 | [diff] [blame] | 1 | <html> |
2 | <head> | ||||
3 | <style type="text/css" media="screen"> | ||||
4 | body { | ||||
5 | margin: 0; | ||||
6 | } | ||||
7 | |||||
8 | #one { | ||||
9 | position:absolute; | ||||
10 | left: 50px; | ||||
11 | top:50px; | ||||
12 | width:100px; | ||||
13 | height:100px; | ||||
14 | background-color:red; | ||||
15 | z-index:0; | ||||
16 | } | ||||
17 | |||||
18 | #two { | ||||
19 | width:200px; | ||||
20 | height:200px; | ||||
21 | overflow: auto; | ||||
22 | -webkit-transform: scale(0.5); | ||||
23 | background-color:green; | ||||
24 | z-index:0; | ||||
25 | } | ||||
26 | </style> | ||||
27 | </head> | ||||
28 | <body> | ||||
29 | <div id="one"></div> | ||||
30 | <div id="two"></div> | ||||
31 | <p>You should see one green square above</p> | ||||
32 | </body> | ||||
33 | </html> |