OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <style> | |
3 table { | |
4 width: 250px; | |
5 } | |
6 | |
7 td { | |
8 width: 242px; | |
9 } | |
10 | |
11 .cell-specified-height { | |
12 height: 202px; | |
13 } | |
14 | |
15 .container { | |
16 height: 100%; | |
17 overflow-y: hidden; | |
18 border: 1px solid #ccc; | |
19 } | |
20 .content { | |
21 background-color: black; | |
22 height: 2000px; | |
23 width: 225px; | |
24 } | |
25 </style> | |
26 <table> | |
27 <td class="cell-specified-height"> | |
28 <div class="container" data-expected-height=200> | |
29 <div class="content"></div> | |
30 </div> | |
31 </td> | |
32 </table> | |
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> | |
35 <div id="output"></div> | |
36 <script> | |
37 checkLayout('.container', output); | |
38 </script> | |
OLD | NEW |