blob: 1245c2b3621cee88ff4e6cd2c977fd203ffd53a8 (
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
|
<!DOCTYPE html>
<html>
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
grid-template-columns: 100px 10vw;
grid-template-rows: 10vh 100px;
}
.firstRowFirstColumn {
width: 100%;
height: 100%;
}
.firstRowSecondColumn {
width: 100%;
height: 100%;
}
.secondRowFirstColumn {
width: 100%;
height: 100%;
}
.secondRowSecondColumn {
width: 100%;
height: 100%;
}
</style>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid')">
<p>Test that specifying the track breadth sizes works properly with all the allowed length types and in different writing modes.</p>
<div class="grid">
<div class="firstRowFirstColumn" data-expected-width="100" data-expected-height="60"></div>
<div class="firstRowSecondColumn" data-expected-width="80" data-expected-height="60"></div>
<div class="secondRowFirstColumn" data-expected-width="100" data-expected-height="100"></div>
<div class="secondRowSecondColumn" data-expected-width="80" data-expected-height="100"></div>
</div>
<div class="grid verticalRL">
<div class="firstRowFirstColumn" data-expected-width="60" data-expected-height="100"></div>
<div class="firstRowSecondColumn" data-expected-width="60" data-expected-height="80"></div>
<div class="secondRowFirstColumn" data-expected-width="100" data-expected-height="100"></div>
<div class="secondRowSecondColumn" data-expected-width="100" data-expected-height="80"></div>
</div>
<div class="grid">
<div class="firstRowFirstColumn" class="verticalRL" data-expected-width="100" data-expected-height="60"></div>
<div class="firstRowSecondColumn" data-expected-width="80" data-expected-height="60"></div>
<div class="secondRowFirstColumn" class="verticalRL" data-expected-width="100" data-expected-height="100"></div>
<div class="secondRowSecondColumn" data-expected-width="80" data-expected-height="100"></div>
</div>
</body>
</html>
|