blob: 1132e655cb05bc157a841e77261d43057025bb6c (
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
|
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<link href="resources/grid-alignment.css" rel="stylesheet">
<style>
.negativeStartBeforePositionIndexes {
grid-row: -10 / 1;
grid-column: -28 / 1;
}
.negativeEndAfterPositionIndexes {
grid-row: 1 / -17;
grid-column: 1 / -80;
}
.negativePositionIndexes {
grid-row: -50 / -3;
grid-column: -8 / -54;
}
</style>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid')">
<div>This test checks that negative grid position indexes don't make us crash.</div>
<div class="unconstrainedContainer">
<div class="grid justifyContentStart">
<div class="sizedToGridArea negativeStartBeforePositionIndexes" data-expected-width="120" data-expected-height="10">XXXXX XXXXXX</div>
</div>
</div>
<div class="unconstrainedContainer">
<div class="grid justifyContentStart">
<div class="sizedToGridArea negativeEndAfterPositionIndexes" data-expected-width="120" data-expected-height="10">XXXXX XXXXXX</div>
</div>
</div>
<div class="unconstrainedContainer">
<div class="grid justifyContentStart">
<div class="sizedToGridArea negativePositionIndexes" data-expected-width="120" data-expected-height="10">XXXXX XXXXXX</div>
</div>
</div>
</body>
|