summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/justify-content-position-change.html
blob: 82a1993e8021b36e6e8cc279c6c3aa7fe8931855 (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
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
  document.getElementById('container').style.justifyContent = 'flex-start';
}
onload = runRepaintTest;
</script>
<style>
body {
  margin: 0;
}
#container {
  display: flex;
  justify-content: center;
  width: 200px;
  height: 300px;
  background-color: orange;
}
.item {
  background-color: green;
  border: solid thin blue;
  width: 50px;
}
</style>
<p style="height: 20px">Tests invalidation on justify-content style change. Passes if only one big orange bar appear aligned to the box's right edge.</p>
<div id="container">
  <div class="item">
    <div style="height: 50px"></div>
  </div>
  <div class="item">
    <div style="height: 50px"></div>
  </div>
</div>