fune/testing/web-platform/tests/css/css-sizing/dynamic-available-size-iframe.html
Ian Kilpatrick 454fb5e3fd Bug 1529153 [wpt PR 15467] - [LayoutNG] Force relayout when constraint spaces change., a=testonly
Automatic update from web-platform-tests
[LayoutNG] Force relayout when constraint spaces change.

This patch reuses a lot of the logic we currently have to skip layout
in LayoutNGMixin::CachedLayoutResult.
It also moves this logic from ng_length_utils.cc to ng_layout_utils.cc

We also make sure that if the constraint spaces don't match we force
a layout of the child.

Previously we were only performing a LayoutIfNeeded in this case, and
as a result children not respecting the available size, etc.

Bug: 635619, 928672
Change-Id: I36e248f1a7413f5becd2b39bdd2db25ca2843559
Reviewed-on: https://chromium-review.googlesource.com/c/1476263
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633839}

--

wpt-commits: ee83714673e1e39f982c0fe901818c3b20341e1a
wpt-pr: 15467
2019-04-01 14:42:14 +01:00

16 lines
724 B
HTML

<!DOCTYPE html>
<html class=reftest-wait>
<meta name="assert" content="Checks that an absolute positioned element is positioned correctly, when the available size of its parent changes due to document resize." />
<link rel="help" href="https://crbug.com/928672">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<script src="/common/reftest-wait.js"></script>
<p>Test passes if there is a filled green square.</p>
<iframe id="target" height="100" width="200" src="support/dynamic-available-size-iframe.html" style="border: none;"></iframe>
<script>
onload = () => {
requestAnimationFrame(() => requestAnimationFrame(() => {
target.width = '100';
takeScreenshot();
}));
};
</script>