blob: 8f86783078d2db643dc1e20853d878dece146513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/ahem.js"></script>
<style type="text/css">
.container
{
width:300px;
height:400px;
font:16px/1 Ahem;
background-color:#999999;
}
.child
{
display:table;
height:100%;
background-color:green;
}
.fixed-table
{
table-layout:fixed;
}
</style>
<script src="../../resources/check-layout.js"></script>
</head>
<body onload="checkLayout('.child')">
<div> Testcase for Bug <a href="http://wkbug.com/98633">http://wkbug.com/98633</a>. The testcase checks if the height of a
css table does not exceed the max-height value. The height of the table can be greater than max-height value when either
min-height is greater than max-height or computed height of the content is greater than the max-height.
</div>
<br>
<div class="container">
<div id="maxGreatThanMinHeightAutoLayout" class="child" style="min-height:100px; max-height:200px;" data-expected-height=200>
This sub-test checks that when min-height is lesser than max-height, max-height is applied to a table with auto layout.
</div>
</div>
<div class="container">
<div class="child" style="min-height:200px; max-height:100px;" data-expected-height=200>
This sub-test checks that when min-height is greater than max-height, min-height is applied to a table with auto layout.
</div>
</div>
<div class="container">
<div class="child" style="max-height:200px;" data-expected-height=200>
This sub-test checks that max-height with fixed value is applied to a table with auto layout.
</div>
</div>
<div class="container">
<div class="child" style="max-height:50%;" data-expected-height=200>
This sub-test checks that max-height with percent value is applied to a table with auto layout.
</div>
</div>
<div class="container">
<div class="child" style="max-height:50vh;" data-expected-height=300>
This sub-test checks that max-height with viewport percent height value is applied to a table with auto layout.
</div>
</div>
<div class="container">
<div class="child" style="max-height:25vw;" data-expected-height=200>
This sub-test checks that max-height with viewport percent width value is applied to a table with auto layout.
</div>
</div>
<div class="container">
<div class="child" style="max-height:100px;" data-expected-height=192>
This sub-test checks that when content height is greater than max-height, content height is applied to the table with auto layout.
<br><br>FILLER TEXT TO INCREASE CONTENT HEIGHT.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="height:auto;">
This test checks that when height of an auto-table is auto, there is are no asserts. No crash means the test passed.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="min-height:100px; max-height:200px;" data-expected-height=200>
This sub-test checks that when min-height is lesser than max-height, max-height is applied to a table with fixed layout.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="min-height:200px; max-height:100px;" data-expected-height=200>
This sub-test checks that when min-height is greater than max-height, min-height is applied to a table with fixed layout.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="max-height:200px;" data-expected-height=200>
This sub-test checks that max-height with fixed value is applied to a table with fixed layout.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="max-height:50%;" data-expected-height=200>
This sub-test checks that max-height with percent value is applied to a table with fixed layout.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="max-height:50vh;" data-expected-height=300>
This sub-test checks that max-height with viewport percent height value is applied to a table with fixed layout.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="max-height:25vw;" data-expected-height=200>
This sub-test checks that max-height with viewport percent width value is applied to a table with fixed layout.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="max-height:100px;" data-expected-height=192>
This sub-test checks that when content height is greater than max-height, content height is applied to a table with fixed layout.
<br><br>FILLER TEXT TO INCREASE CONTENT HEIGHT.
</div>
</div>
<div class="container">
<div class="child fixed-table" style="height:auto;">
This test checks that when height of a fixed table is auto, there is are no asserts. No crash means the test passed.
</div>
</div>
<body>
</html>
|