Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=318358 (#61179) -- wpt-commits: b31c53fb67123e7ab12f18d7b7df56a21c53edfb wpt-pr: 61179
26 lines
559 B
HTML
26 lines
559 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#layout-algorithm">
|
|
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: auto;
|
|
grid-template-rows: 100px;
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
.item {
|
|
grid-row: 1 / 2;
|
|
}
|
|
.item.max {
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
<div class="grid"><div class="item"></div></div>
|
|
<script>
|
|
document.body.offsetHeight;
|
|
|
|
document.querySelector(".item").classList.add("max");
|
|
document.body.offsetHeight;
|
|
</script>
|