2 <link href=
"resources/grid.css" rel=
"stylesheet">
8 .singleNamedGridLines {
9 grid-template-columns: [a] auto [b];
10 grid-template-rows: [x] auto [y];
13 .multipleNamedGridLines {
14 grid-template-columns: [a b c] auto [d e];
15 grid-template-rows: [x y z] auto [v w];
18 <script src=
"../../resources/js-test.js"></script>
20 <div class=
"grid singleNamedGridLines" id=
"gridOneColumnSingle">
27 <div class=
"grid singleNamedGridLines" id=
"gridTwoColumnsSingle">
28 <div class=
"firstRowAutoColumn">XXXX
</div>
29 <div class=
"firstRowAutoColumn">XXX
</div>
34 <div class=
"grid singleNamedGridLines" id=
"gridThreeColumnsSingle">
35 <div class=
"firstRowAutoColumn">XXXX
</div>
36 <div class=
"firstRowAutoColumn">XXX
</div>
37 <div class=
"firstRowAutoColumn">XX
</div>
41 <div class=
"grid singleNamedGridLines" id=
"gridFourColumnsSingle">
42 <div class=
"firstRowAutoColumn">XXXX
</div>
43 <div class=
"firstRowAutoColumn">XXX
</div>
44 <div class=
"firstRowAutoColumn">XX
</div>
45 <div class=
"firstRowAutoColumn">X
</div>
48 <div class=
"grid multipleNamedGridLines" id=
"gridOneColumnMultiple">
55 <div class=
"grid multipleNamedGridLines" id=
"gridTwoColumnsMultiple">
56 <div class=
"firstRowAutoColumn">XXXX
</div>
57 <div class=
"firstRowAutoColumn">XXX
</div>
62 <div class=
"grid multipleNamedGridLines" id=
"gridThreeColumnsMultiple">
63 <div class=
"firstRowAutoColumn">XXXX
</div>
64 <div class=
"firstRowAutoColumn">XXX
</div>
65 <div class=
"firstRowAutoColumn">XX
</div>
69 <div class=
"grid multipleNamedGridLines" id=
"gridFourColumnsMultiple">
70 <div class=
"firstRowAutoColumn">XXXX
</div>
71 <div class=
"firstRowAutoColumn">XXX
</div>
72 <div class=
"firstRowAutoColumn">XX
</div>
73 <div class=
"firstRowAutoColumn">X
</div>
76 <script src=
"resources/grid-definitions-parsing-utils.js"></script>
78 description("Test that computed style for grid-template-columns and grid-template-rows works as expected with named grid lines and implicit tracks");
80 testGridDefinitionsValues(document
.getElementById("gridOneColumnSingle"), "[a] 200px [b]", "[x] 50px [y] 50px 50px 50px");
81 testGridDefinitionsValues(document
.getElementById("gridTwoColumnsSingle"), "[a] 200px [b] 150px", "[x] 50px [y] 50px");
82 testGridDefinitionsValues(document
.getElementById("gridThreeColumnsSingle"), "[a] 200px [b] 150px 100px", "[x] 50px [y] 50px");
83 testGridDefinitionsValues(document
.getElementById("gridFourColumnsSingle"), "[a] 200px [b] 150px 100px 50px", "[x] 50px [y]");
85 testGridDefinitionsValues(document
.getElementById("gridOneColumnMultiple"), "[a b c] 200px [d e]", "[x y z] 50px [v w] 50px 50px 50px");
86 testGridDefinitionsValues(document
.getElementById("gridTwoColumnsMultiple"), "[a b c] 200px [d e] 150px", "[x y z] 50px [v w] 50px");
87 testGridDefinitionsValues(document
.getElementById("gridThreeColumnsMultiple"), "[a b c] 200px [d e] 150px 100px", "[x y z] 50px [v w] 50px");
88 testGridDefinitionsValues(document
.getElementById("gridFourColumnsMultiple"), "[a b c] 200px [d e] 150px 100px 50px", "[x y z] 50px [v w]");