mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-09 01:31:02 +00:00
22 lines
666 B
HTML
22 lines
666 B
HTML
|
|
<script src="include.js"></script>
|
||
|
|
<style>
|
||
|
|
.grid-container {
|
||
|
|
width: 200px;
|
||
|
|
display: grid;
|
||
|
|
background-color: lightsalmon;
|
||
|
|
}
|
||
|
|
|
||
|
|
.grid-item {
|
||
|
|
height: 50px;
|
||
|
|
background-color: lightblue;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<div class="grid-container" style="grid-template-columns: auto auto"><div class="grid-item"></div><div class="grid-item"></div><div class="grid-item"></div><div class="grid-item"></div></div>
|
||
|
|
<script>
|
||
|
|
test(() => {
|
||
|
|
const grid = document.querySelector(".grid-container");
|
||
|
|
println(getComputedStyle(grid).gridTemplateColumns);
|
||
|
|
println(getComputedStyle(grid).gridTemplateRows);
|
||
|
|
});
|
||
|
|
</script>
|