Update web-platform-tests to revision e91d7d8c9a1f14438e44000dcd05ce6e658e4ae5

This commit is contained in:
WPT Sync Bot 2020-07-11 08:20:37 +00:00
parent 242e7e2630
commit 1a3fdf7a13
567 changed files with 9823 additions and 2333 deletions

View file

@ -0,0 +1,82 @@
<!DOCTYPE html>
<title>grid items and abspos flex children</title>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org" />
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#abspos-items">
<link rel="help" href="https://drafts.csswg.org/css-grid/#algo-overview" title="Note at bottom of this section: 'the size of a grid item which is stretched is also considered definite.'">
<link rel="bookmark" href="https://crbug.com/1091588" />
<link rel="bookmark" href="https://crbug.com/1018439" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
.grid {
display: grid;
}
.flexbox {
display: flex;
}
.relpos {
position: relative;
}
.abspos {
position: absolute;
border: 1px solid;
}
/* These are just for making the test look better. */
p {
margin: 0px;
}
p + div {
margin-bottom: 40px;
}
</style>
<p>This crashed Chrome 84.</p>
<div class=grid>
<div class="relpos flexbox" data-expected-height=20>
<div class=abspos>Test</div>
<div style="height: 20px;"></div>
</div>
</div>
<p>Outer is a regular div.</p>
<div>
<div class="relpos flexbox" data-expected-height=20>
<div class=abspos>Test</div>
<div style="height: 20px;"></div>
</div>
</div>
<p>relpos element is a regular div, not flexbox.</p>
<div class=grid>
<div class="relpos" data-expected-height=20>
<div class=abspos>Test</div>
<div style="height: 20px;"></div>
</div>
</div>
<p>Relpos flexbox has a % height descendant. The height of the flexbox grid item is supposed to be definite, allowing the %height flex item to resolve.
This fails in chrome because of https://crbug.com/1018439</p>
<div class=grid>
<div class="relpos flexbox" data-expected-height=20>
<div class=abspos>Test</div>
<div style="height: 20px;"></div>
<div style="height: 50%" data-expected-height=10></div>
</div>
</div>
<script>
checkLayout('.relpos');
// Changing the abspos border shouldn't change the size of any inflow element.
for (abspos of document.querySelectorAll(".abspos")) {
abspos.style.borderWidth = "10px";
}
checkLayout('.relpos');
</script>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#definite-sizes">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="bookmark" href="https://crbug.com/1092934">
<meta name="assert" content="Replaced children with % max-height are sized correctly when their parents are flex items with imposed definite heights." />
<p>Test passes if there is a filled green square.</p>
<div style="display: flex; height: 100px;">
<div>
<!-- This is a 200x200 green square. It's inline so that there is no
raciness when an image resource loads, which affects chrome's behavior
on this test. -->
<img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='200' height='200'><rect width='200' height='200' fill='green'/></svg>" style="max-height: 100%">
</div>
</div>