OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 table { | 3 table { |
4 width: 250px; | 4 width: 250px; |
5 } | 5 } |
6 | 6 |
7 td { | 7 td { |
8 width: 242px; | 8 width: 242px; |
9 } | 9 } |
10 | 10 |
11 .cell-specified-height { | 11 .cell-specified-height { |
12 height: 202px; | 12 height: 202px; |
13 } | 13 } |
14 | 14 |
15 .container { | 15 .container { |
16 height: 100%; | 16 height: 100%; |
17 overflow-y: hidden; | 17 overflow-y: hidden; |
18 border: 1px solid #ccc; | 18 border: 1px solid #ccc; |
19 } | 19 } |
20 .content { | 20 .content { |
21 background-color: black; | 21 background-color: black; |
22 height: 2000px; | 22 height: 2000px; |
23 width: 225px; | 23 width: 225px; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <table> | 26 <table> |
27 <td class="cell-specified-height"> | 27 <td class="cell-specified-height"> |
28 <div class="container" data-expected-height=202> | 28 <div class="container" data-expected-height=204> |
29 <div class="content"></div> | 29 <div class="content"></div> |
30 </div> | 30 </div> |
31 </td> | 31 </td> |
32 </table> | 32 </table> |
33 <script src="../../resources/check-layout.js"></script> | 33 <script src="../../resources/check-layout.js"></script> |
34 <p> crbug.com/465096: Percent height content in a cell with a computed height sh
ould use the height of the cell. </p> | 34 <p> crbug.com/465096: Percent height content in a cell with a computed height sh
ould use the height of the cell. </p> |
35 <div id="output"></div> | 35 <div id="output"></div> |
36 <script> | 36 <script> |
37 checkLayout('.container', output); | 37 checkLayout('.container', output); |
38 </script> | 38 </script> |
OLD | NEW |