42 lines
842 B
HTML
42 lines
842 B
HTML
<!DOCTYPE HTML>
|
|
<script src="resources/text-based-repaint.js"></script>
|
|
<script>
|
|
function repaintTest() {
|
|
document.getElementById('container').style.justifyItems = 'safe end';
|
|
}
|
|
onload = runRepaintTest;
|
|
</script>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
#container {
|
|
display: grid;
|
|
grid: 300px / 100px 100px;
|
|
justify-items: unsafe end;
|
|
width: 200px;
|
|
height: 300px;
|
|
background-color: red;
|
|
}
|
|
.item1 {
|
|
grid-row: 1;
|
|
grid-column: 1;
|
|
background-color: green;
|
|
width: 160px;
|
|
}
|
|
.item2 {
|
|
grid-row: 1;
|
|
grid-column: 2;
|
|
background-color: green;
|
|
width: 50px;
|
|
</style>
|
|
<p style="height: 20px">Tests invalidation on justify-items style change. Passes if there is no red.</p>
|
|
<div id="container">
|
|
<div class="item1">
|
|
<div style="height: 50px"></div>
|
|
</div>
|
|
<div class="item2">
|
|
<div style="height: 50px"></div>
|
|
</div>
|
|
</div>
|