OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 html, body { | 5 html, body { |
6 margin: 0; | 6 margin: 0; |
7 padding: 0; | 7 padding: 0; |
8 } | 8 } |
9 .container { | 9 .container { |
10 width: 100px; | 10 width: 100px; |
11 height: 100px; | 11 height: 100px; |
12 background-color: lime; | 12 background-color: lime; |
13 position: relative; | 13 position: relative; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <script> | 16 <script> |
17 </script> | 17 </script> |
18 </head> | 18 </head> |
19 <body> | 19 <body> |
20 <p>You should see 4 green boxes that do not show scrollbars. | 20 <p>You should see 4 green boxes that do not show scrollbars. |
21 The first two boxes would show overlay scrollbars if they weren't | 21 They would show scrollbars if they weren't hidden (2nd and 4th with scrollbars o
n the left).</p> |
22 hidden (second one with a scrollbar on the left).</p> | |
23 | 22 |
24 <div class="container"></div> | 23 <div class="container"></div> |
25 <div dir="rtl" class="container"></div> | 24 <div dir="rtl" class="container"></div> |
26 | 25 |
27 <div class="container"></div> | 26 <div class="container"></div> |
28 <div dir="rtl" class="container"></div> | 27 <div dir="rtl" class="container"></div> |
29 </body> | 28 </body> |
30 </html> | 29 </html> |
OLD | NEW |