Update web-platform-tests to revision 9d4ac1a6aece5742bdb7e797d971de42f39a974b

This commit is contained in:
WPT Sync Bot 2020-10-28 08:20:02 +00:00
parent 80570dafdd
commit f29d4a30af
190 changed files with 2596 additions and 909 deletions

View file

@ -41,9 +41,9 @@
</div>
<div class="flexbox" style="width: 10px;" data-expected-width="10">
<!-- should use min(transferred, content width) = 10px as minimum width,
which the image will shrink to due to default flex-shrink. -->
<img src="support/10x10-green.png" style="height: 100px;" data-expected-width="10">
<!-- transferred and content suggestions are both 100px here, so minimum
width is min(transferred, content width) = 100px. -->
<img src="support/10x10-green.png" style="height: 100px;" data-expected-width="100">
</div>
<div class="flexbox column" style="height: 10px;" data-expected-height="10">

View file

@ -2,8 +2,9 @@
<title>Flex transferred minimum width</title>
<link rel="author" title="dgrogan@chromium.org" href="mailto:dgrogan@chromium.org" />
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#min-size-auto" />
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5663" />
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="min-width: auto ignores transferred size suggestion when item has a definite main size">
<meta name="assert" content="min-width: auto ignores transferred size suggestion when item has a definite specified main size">
<style>
#reference-overlapped-red {
@ -19,13 +20,16 @@
<div id="reference-overlapped-red"></div>
<div style="width:100px; height: 75px; background: green;"></div>
<div style="display: flex; width: 0px">
<div style="display: flex; width: 0px; height: 25px;">
<!--
content size suggestion is 300px.
specified size suggestion is 100px.
transferred size suggestion is 50px, but that is ignored because there is a
specified size. The ignoring is from the spec text that says,
(capitalization added):
content size suggestion is 300px
specified size suggestion is 100px
Chrome 87 and Firefox 84a1 disagree about transferred size suggestion here
(Chrome says undefined. Firefox says 300/150 * 25 = 50. See spec issue
above.) but it doesn't matter: this test asserts that the transferred size
suggestion is ignored, because of this from the spec (capitalization
added):
In general, the content-based minimum size of a flex item is the smaller of
its content size suggestion and its specified size suggestion. However, if
@ -35,5 +39,5 @@
So here the content-based minimum size is min(300, 100) = 100.
-->
<img src="support/300x150-green.png" style="height: 25px; width: 100px;">
<img src="support/300x150-green.png" style="width: 100px;">
</div>