OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
3 | 3 |
4 <html lang="en"> | 4 <html lang="en"> |
5 <head> | 5 <head> |
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
7 <title>Position fixed</title> | 7 <title>Position fixed</title> |
8 <script src="../resources/mock_scrollbars.js"></script> | 8 <script src="../resources/mock_scrollbars.js"></script> |
9 <style type="text/css" media="screen"> | 9 <style type="text/css" media="screen"> |
10 ::-webkit-scrollbar { | |
11 width: 0px; | |
12 height: 0px; | |
13 } | |
14 body { | 10 body { |
15 height: 1000px; | 11 height: 1000px; |
16 width: 1000px; | 12 width: 1000px; |
17 } | 13 } |
18 #fixed { | 14 #fixed { |
19 position: fixed; | 15 position: fixed; |
20 top: 0; | 16 top: 0; |
21 left: 0; | 17 left: 0; |
22 height: 100px; | 18 height: 100px; |
23 width: 100px; | 19 width: 100px; |
(...skipping 26 matching lines...) Expand all Loading... |
50 <body> | 46 <body> |
51 | 47 |
52 <p>You should see a green square in the top left corner of an orange box.</p> | 48 <p>You should see a green square in the top left corner of an orange box.</p> |
53 <div id="fixed"> | 49 <div id="fixed"> |
54 <div class="compositing box"> | 50 <div class="compositing box"> |
55 </div> | 51 </div> |
56 </div> | 52 </div> |
57 | 53 |
58 </body> | 54 </body> |
59 </html> | 55 </html> |
OLD | NEW |