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>Overflow Test</title> | 7 <title>Overflow Test</title> |
8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
9 .container { | 9 .container { |
10 display: inline-block; | 10 display: inline-block; |
11 margin: 20px; | 11 margin: 20px; |
12 width: 120px; | 12 width: 120px; |
13 height: 120px; | 13 height: 120px; |
14 padding: 10px; | 14 padding: 10px; |
15 border: 1px solid black; | 15 border: 1px solid black; |
16 overflow: hidden; | 16 overflow: hidden; |
17 } | 17 } |
18 | 18 |
19 .intermediate { | 19 .intermediate { |
20 width: 100px; | 20 width: 100px; |
21 height: 100px; | 21 height: 100px; |
22 padding: 10px; | 22 padding: 10px; |
23 border: 1px solid blue; | 23 border: 1px solid blue; |
24 } | 24 } |
25 | 25 |
26 .box { | 26 .box { |
27 width: 100px; | 27 width: 100px; |
28 height: 150px; | 28 height: 150px; |
29 background-color: gray; | 29 background-color: gray; |
30 -webkit-transform: translateZ(0); | 30 transform: translateZ(0); |
31 } | 31 } |
32 </style> | 32 </style> |
33 </head> | 33 </head> |
34 <body> | 34 <body> |
35 | 35 |
36 <p>Test overflow clipping of composited elements in various configurations.</p> | 36 <p>Test overflow clipping of composited elements in various configurations.</p> |
37 <div class="container"> | 37 <div class="container"> |
38 <div class="intermediate"> | 38 <div class="intermediate"> |
39 <div class="box"> | 39 <div class="box"> |
40 </div> | 40 </div> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 <div class="container" style="position: relative; z-index: 0"> | 74 <div class="container" style="position: relative; z-index: 0"> |
75 <div class="intermediate" style="position: absolute;"> | 75 <div class="intermediate" style="position: absolute;"> |
76 <div class="box"> | 76 <div class="box"> |
77 </div> | 77 </div> |
78 </div> | 78 </div> |
79 </div> | 79 </div> |
80 | 80 |
81 </body> | 81 </body> |
82 </html> | 82 </html> |
OLD | NEW |