summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/relayout-input.html
blob: b95601c04c5cff8078896598ae5225776dc237dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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>