Update web-platform-tests to revision 33c263fb308d1c3f6ac6d2590d7292317262819d

This commit is contained in:
WPT Sync Bot 2019-08-23 10:24:44 +00:00
parent 5bf00c07c2
commit 482fda3a78
524 changed files with 14686 additions and 3270 deletions

View file

@ -0,0 +1,52 @@
<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<link rel="author" title="Google LLC" href="http://www.google.com" />
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#cross-sizing" />
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=992010" />
<title>Tests that certain dynamic changes don't lead to a flex item being sized as shrink to fit when it should stretch in the cross axis</title>
<style>
#flex {
display: flex;
flex-direction: column;
flex-wrap: wrap;
position: absolute;
top: 20px;
width: 100px;
}
#it1 {
background: green;
flex: none;
height: 100px;
min-height: 0;
position: relative;
}
#child {
position: absolute;
top: 0;
left: 0;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position: relative;">
<div id="flex">
<div id="it1" style=""><div id="child"></div></div>
<div id="it2"></div>
</div>
</div>
<script>
var flex = document.getElementById("flex");
flex.offsetWidth;
var it2 = document.getElementById("it2");
it2.style.width = "50px";
flex.offsetWidth;
flex.style.top = "0px";
var child = document.getElementById("child");
child.style.top = "1px";
flex.offsetWidth;
</script>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-base-size">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="flags" content="" />
<meta name="assert" content="A flex container's block cross size of min-content is treated as indefinite when setting fit-content on an item for flex base sizing">
<style>
x-flexbox {
display: flex;
height: min-content;
}
.fit-content-item {
background: green;
width: 100px;
writing-mode: vertical-lr;
}
.height-setting-item {
height: 100px;
}
</style>
<!-- This has to be a row flexbox whose item stretches and has vertical writing
mode to trigger:
* a cross size is needed to determine the main size (row flexbox's cross size
is vertical, which is the item's inline size because it has a vertical
writing mode)
* the flex items cross size is [...] not definite (if the item didn't
stretch, the definiteness of the container's cross size wouldn't matter
because the cross size would never be definite and the item would always get
fit-content)
-->
<p>Test passes if there is a filled green square.</p>
<x-flexbox>
<div class="fit-content-item"></div>
<div class="height-setting-item"></div>
</x-flexbox>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-base-size">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="flags" content="" />
<meta name="assert" content="A flex container's block cross size of max-content is treated as indefinite when setting fit-content on an item for flex base sizing">
<style>
x-flexbox {
display: flex;
height: max-content;
}
.fit-content-item {
background: green;
width: 100px;
writing-mode: vertical-lr;
}
.height-setting-item {
height: 100px;
}
</style>
<!-- This has to be a row flexbox whose item stretches and has vertical writing
mode to trigger:
* a cross size is needed to determine the main size (row flexbox's cross size
is vertical, which is the item's inline size because it has a vertical
writing mode)
* the flex items cross size is [...] not definite (if the item didn't
stretch, the definiteness of the container's cross size wouldn't matter
because the cross size would never be definite and the item would always get
fit-content)
-->
<p>Test passes if there is a filled green square.</p>
<x-flexbox>
<div class="fit-content-item"></div>
<div class="height-setting-item"></div>
</x-flexbox>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-base-size">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="flags" content="" />
<meta name="assert" content="A flex container's block cross size of fit-content is treated as indefinite when setting fit-content on an item for flex base sizing">
<style>
x-flexbox {
display: flex;
height: fit-content;
}
.fit-content-item {
background: green;
width: 100px;
writing-mode: vertical-lr;
}
.height-setting-item {
height: 100px;
}
</style>
<!-- This has to be a row flexbox whose item stretches and has vertical writing
mode to trigger:
* a cross size is needed to determine the main size (row flexbox's cross size
is vertical, which is the item's inline size because it has a vertical
writing mode)
* the flex items cross size is [...] not definite (if the item didn't
stretch, the definiteness of the container's cross size wouldn't matter
because the cross size would never be definite and the item would always get
fit-content)
-->
<p>Test passes if there is a filled green square.</p>
<x-flexbox>
<div class="fit-content-item"></div>
<div class="height-setting-item"></div>
</x-flexbox>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<title>flex base size and stretched items</title>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#definite-sizes" title="bullet #1">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<meta name="flags" content="" />
<meta name="assert" content="Item's stretched size is used for laying out descendants when determining flex base size." />
<style>
x-flexbox {
display: flex;
height: 100px;
}
x-item {
background: green;
writing-mode: vertical-lr;
}
x-item > div {
padding-right: 70%;
width: 30px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<x-flexbox>
<x-item>
<div></div>
</x-item>
</x-flexbox>