4 <script src=
"../../resources/ahem.js"></script>
5 <style type=
"text/css">
11 background-color:#999999;
18 background-color:green
;
25 <script src=
"../../resources/check-layout.js"></script>
27 <body onload=
"checkLayout('.child')">
28 <div> Testcase for Bug
<a href=
"http://wkbug.com/98633">http://wkbug.com/
98633</a>. The testcase checks if the height of a
29 css table does not exceed the max-height value. The height of the table can be greater than max-height value when either
30 min-height is greater than max-height or computed height of the content is greater than the max-height.
33 <div class=
"container">
34 <div id=
"maxGreatThanMinHeightAutoLayout" class=
"child" style=
"min-height:100px; max-height:200px;" data-expected-height=
200>
35 This sub-test checks that when min-height is lesser than max-height, max-height is applied to a table with auto layout.
38 <div class=
"container">
39 <div class=
"child" style=
"min-height:200px; max-height:100px;" data-expected-height=
200>
40 This sub-test checks that when min-height is greater than max-height, min-height is applied to a table with auto layout.
43 <div class=
"container">
44 <div class=
"child" style=
"max-height:200px;" data-expected-height=
200>
45 This sub-test checks that max-height with fixed value is applied to a table with auto layout.
48 <div class=
"container">
49 <div class=
"child" style=
"max-height:50%;" data-expected-height=
200>
50 This sub-test checks that max-height with percent value is applied to a table with auto layout.
53 <div class=
"container">
54 <div class=
"child" style=
"max-height:50vh;" data-expected-height=
300>
55 This sub-test checks that max-height with viewport percent height value is applied to a table with auto layout.
58 <div class=
"container">
59 <div class=
"child" style=
"max-height:25vw;" data-expected-height=
200>
60 This sub-test checks that max-height with viewport percent width value is applied to a table with auto layout.
63 <div class=
"container">
64 <div class=
"child" style=
"max-height:100px;" data-expected-height=
192>
65 This sub-test checks that when content height is greater than max-height, content height is applied to the table with auto layout.
66 <br><br>FILLER TEXT TO INCREASE CONTENT HEIGHT.
69 <div class=
"container">
70 <div class=
"child fixed-table" style=
"height:auto;">
71 This test checks that when height of an auto-table is auto, there is are no asserts. No crash means the test passed.
74 <div class=
"container">
75 <div class=
"child fixed-table" style=
"min-height:100px; max-height:200px;" data-expected-height=
200>
76 This sub-test checks that when min-height is lesser than max-height, max-height is applied to a table with fixed layout.
79 <div class=
"container">
80 <div class=
"child fixed-table" style=
"min-height:200px; max-height:100px;" data-expected-height=
200>
81 This sub-test checks that when min-height is greater than max-height, min-height is applied to a table with fixed layout.
84 <div class=
"container">
85 <div class=
"child fixed-table" style=
"max-height:200px;" data-expected-height=
200>
86 This sub-test checks that max-height with fixed value is applied to a table with fixed layout.
89 <div class=
"container">
90 <div class=
"child fixed-table" style=
"max-height:50%;" data-expected-height=
200>
91 This sub-test checks that max-height with percent value is applied to a table with fixed layout.
94 <div class=
"container">
95 <div class=
"child fixed-table" style=
"max-height:50vh;" data-expected-height=
300>
96 This sub-test checks that max-height with viewport percent height value is applied to a table with fixed layout.
99 <div class=
"container">
100 <div class=
"child fixed-table" style=
"max-height:25vw;" data-expected-height=
200>
101 This sub-test checks that max-height with viewport percent width value is applied to a table with fixed layout.
104 <div class=
"container">
105 <div class=
"child fixed-table" style=
"max-height:100px;" data-expected-height=
192>
106 This sub-test checks that when content height is greater than max-height, content height is applied to a table with fixed layout.
107 <br><br>FILLER TEXT TO INCREASE CONTENT HEIGHT.
110 <div class=
"container">
111 <div class=
"child fixed-table" style=
"height:auto;">
112 This test checks that when height of a fixed table is auto, there is are no asserts. No crash means the test passed.