fune/testing/web-platform/tests/css/css-flexbox/relayout-input.html
Ian Kilpatrick f6a2f6f90b Bug 1638901 [wpt PR 23671] - [FlexNG] Skip relayout boundary optimisation if a flex-item., a=testonly
Automatic update from web-platform-tests
[FlexNG] Skip relayout boundary optimisation if a flex-item.

Before this patch we'd consider a text-control a relayout root. If this
was also a NG flex-item it wouldn't have enough information to correctly
layout, (it wouldn't know what size to stretch to for example).

This patch disables the relayout boundary optimisation for text-controls
and SVG roots - which are also flex-items.

Bug: 1082447
Change-Id: I0e3b2186301fbf9488c0723c525a5e45e2ca80df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2207611
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769810}

--

wpt-commits: adae164b25b44a392d7091afa760f40707ad33b0
wpt-pr: 23671
2020-05-27 11:40:00 +00:00

15 lines
538 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1082447" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<div style="display: flex; width: 100px;">
<input id="target" style="position: relative; height: 20px; flex: 1; width: 0px;" data-expected-width="100" />
</div>
<script>
test(function() {
document.body.offsetTop;
document.getElementById('target').value = 'text';
checkLayout('#target');
});
</script>