OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 height: 5000px; | 6 height: 5000px; |
7 overflow-x: hidden; | 7 overflow-x: hidden; |
8 } | 8 } |
9 | 9 |
10 #transform { | 10 #transform { |
11 z-index: 0; | 11 z-index: 0; |
12 /* transform establishes a fixed pos container, so translate to make up
for scroll offset so indicator is still underneath overlap */ | 12 /* transform establishes a fixed pos container, so translate to make up
for scroll offset so indicator is still underneath overlap */ |
13 -webkit-transform:translate3d(0px, 1000px, 0px); | 13 transform:translate3d(0px, 1000px, 0px); |
14 } | 14 } |
15 | 15 |
16 #indicator { | 16 #indicator { |
17 width: 256px; | 17 width: 256px; |
18 height: 256px; | 18 height: 256px; |
19 background-color: red; | 19 background-color: red; |
20 position: fixed; | 20 position: fixed; |
21 left: 100px; | 21 left: 100px; |
22 top: 100px; | 22 top: 100px; |
23 } | 23 } |
(...skipping 21 matching lines...) Expand all Loading... |
45 <body> | 45 <body> |
46 <!-- the red indicator should be covered by the green overlap element --> | 46 <!-- the red indicator should be covered by the green overlap element --> |
47 <div id="transform"> | 47 <div id="transform"> |
48 <div id="indicator"></div> | 48 <div id="indicator"></div> |
49 </div> | 49 </div> |
50 <div id="overlap"></div> | 50 <div id="overlap"></div> |
51 | 51 |
52 <pre id="layertree"></pre> | 52 <pre id="layertree"></pre> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |