summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid.html
blob: 58eff80a8a96fde977e48ae2694fcb2667389b61 (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
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
  document.getElementsByClassName('item')[0].style.alignSelf = 'stretch';
}
onload = runRepaintTest;
</script>
<style>
body {
  margin: 0;
}
#container {
  display: grid;
  grid: 300px / 100px;
  width: 200px;
  height: 300px;
  background-color: red;
}
.item {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  background-color: green;
}
</style>
<p style="height: 20px">There should be no invalidations because align-self style change causes no visual change.</p>
<div id="container">
  <div class="item">
    <div style="height: 300px"></div>
  </div>
</div>