Bug 1897866 [wpt PR 46389] - [Grid] Introduce dynamic-subgridded-item-height.html to WPT, a=testonly
Automatic update from web-platform-tests [Grid] Introduce dynamic-subgridded-item-height.html to WPT This test was discovered as a regression to recent changes in Blink's subgrid `MinMaxSizes` cache, which will be reintroduced later. Bug: 40946243 Change-Id: I6697f827b023c3a1483c002d94e511f20bbba75e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5551624 Commit-Queue: Ethan Jimenez <ethavar@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1303794} -- wpt-commits: b6fdf235bff8ca113b7105f56ef6f2c40199b6a5 wpt-pr: 46389
This commit is contained in:
committed by
moz-wptsync-bot
parent
82a8348dd5
commit
d1e931b127
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Grid Test: Subgridded item changing its height dynamically</title>
|
||||
<link rel="author" title="Ethan Jimenez" href="mailto:ethavar@microsoft.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-grid-2/#algo-overview">
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
||||
<style>
|
||||
.wrapper {
|
||||
background: red;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 100px;
|
||||
}
|
||||
.subgrid {
|
||||
display: grid;
|
||||
grid-template-columns: subgrid;
|
||||
overflow: clip;
|
||||
}
|
||||
.container { background: green }
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div class="wrapper">
|
||||
<div class="grid">
|
||||
<div class="subgrid">
|
||||
<div class="container">
|
||||
<div id="inner"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.body.offsetHeight;
|
||||
document.getElementById('inner').style.height = '100px';
|
||||
</script>
|
||||
Reference in New Issue
Block a user