| Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ce7ac8ec967d18eab74f7c8a1ff55d52f7e6ca52
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change.html
|
| @@ -0,0 +1,44 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +
|
| +.grid {
|
| + display: grid;
|
| + grid: 50px 50px / 50px 50px;
|
| + position: relative;
|
| +}
|
| +
|
| +.green {
|
| + background: green;
|
| +}
|
| +
|
| +.red {
|
| + background: red;
|
| +}
|
| +
|
| +#item {
|
| + position: absolute;
|
| + width: 100%;
|
| + height: 100%;
|
| + grid-column: 1 / 2;
|
| + grid-row: 1 / 2;
|
| +}
|
| +</style>
|
| +
|
| +<p>This test checks that positioned items can be dynamically changed.</p>
|
| +<p>The test passes if you see a 100x100 green square and no red.</p>
|
| +
|
| +<div class="grid">
|
| + <div class="green"></div>
|
| + <div class="green"></div>
|
| + <div class="green"></div>
|
| + <div class="red"></div>
|
| + <div id="item" class="green"></div>
|
| +</div>
|
| +
|
| +<script>
|
| +document.body.offsetLeft;
|
| +
|
| +var item = document.getElementById("item");
|
| +item.style.gridColumn = "2 / 3";
|
| +item.style.gridRow = "2 / 3";
|
| +</script>
|
|
|