OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 height: 1000px; | 8 height: 1000px; |
9 } | 9 } |
10 | 10 |
11 .box { | 11 .box { |
12 width: 100px; | 12 width: 100px; |
13 height: 100px; | 13 height: 100px; |
14 outline: 1px solid black; | 14 outline: 1px solid black; |
15 } | 15 } |
16 | 16 |
17 .fixed { | 17 .fixed { |
18 position: fixed; | 18 position: fixed; |
19 } | 19 } |
20 | 20 |
21 .transformed { | 21 .transformed { |
22 -webkit-transform: rotate(0); | 22 transform: rotate(0); |
23 } | 23 } |
24 | 24 |
25 .indicator { | 25 .indicator { |
26 position: absolute; | 26 position: absolute; |
27 background-color: red; | 27 background-color: red; |
28 } | 28 } |
29 | 29 |
30 </style> | 30 </style> |
31 <script type="text/javascript" charset="utf-8"> | 31 <script type="text/javascript" charset="utf-8"> |
32 // Scroll on load to test fixed positioning. | 32 // Scroll on load to test fixed positioning. |
(...skipping 14 matching lines...) Expand all Loading... |
47 | 47 |
48 <div class="transformed fixed box" style="left: 250px; top: 50px;"> | 48 <div class="transformed fixed box" style="left: 250px; top: 50px;"> |
49 <div class="transformed box" style="margin-top: 50px; background-color: gree
n;"> | 49 <div class="transformed box" style="margin-top: 50px; background-color: gree
n;"> |
50 </div> | 50 </div> |
51 </div> | 51 </div> |
52 | 52 |
53 <p>Tests fixed position elements combined with transforms. You should see no r
ed above.</p> | 53 <p>Tests fixed position elements combined with transforms. You should see no r
ed above.</p> |
54 | 54 |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |