blob: 0cb0c08be111b11daa4d7fb393cea73f4fbf0539 (
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
|
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementsByClassName('item1')[0].style.alignSelf = 'end safe';
document.getElementsByClassName('item2')[0].style.alignSelf = 'end safe';
}
onload = runRepaintTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid: 150px 150px / 200px;
width: 200px;
height: 300px;
background-color: red;
}
.item1 {
grid-row: 1;
grid-column: 1;
align-self: end unsafe;
background-color: green;
}
.item2 {
grid-row: 2;
grid-column: 1;
align-self: end unsafe;
background-color: green;
</style>
<p style="height: 20px">Tests invalidation on align-self style change (just overflow). Passes if there is no red.</p>
<div id="container">
<div class="item1">
<div style="height: 200px"></div>
</div>
<div class="item2">
<div style="height: 100px"></div>
</div>
</div>
|