gecko-dev/testing/web-platform/tests/css/css-grid/chrome-bug-001.html
Ian Kilpatrick a2e2457dce Bug 1608999 [wpt PR 21151] - [css-grid] Skip simplified layout if the Grid is dirty., a=testonly
Automatic update from web-platform-tests
[css-grid] Skip simplified layout if the Grid is dirty.

Bug report bisected to an improvement in the LayoutNG OOF cache.
https://chromium-review.googlesource.com/c/chromium/src/+/1772524

There was a larger underlying issue that a LayoutGrid could have
simplified layout performed, while having a non-existent grid.

This manifested in an incorrect paint output.

This patch simply disables simplified-layout whenever there is dirty
grid. It doesn't seem the invalidation for this grid data-structure
is optimal.

Bug: 1040069
Change-Id: I347630f3fc5c330ae57b06219d1e32b6269177d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1999224
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734856}

--

wpt-commits: d0d42b1d9d37ceda3d5acb60edf4f157f06a4190
wpt-pr: 21151
2020-01-31 20:40:07 +00:00

21 lines
639 B
HTML

<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="help" href="https://crbug.com/1040069">
<meta name="assert" content="This test checks that a dynamic change relative position paints the grid correctly."/>
<style>
#target {
display: grid;
grid-template-columns: repeat(auto-fit, 50px);
position: relative;
top: 10px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target">
<div style="width: 100px; height: 100px; background: green;"></div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.top = '0px';
</script>