Update web-platform-tests to revision 90aab682c731f768872ca2b37f047752d5da2d8a

This commit is contained in:
WPT Sync Bot 2020-10-01 08:19:23 +00:00
parent 701b698999
commit a71c7758db
139 changed files with 2383 additions and 998 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<title>CSS aspect-ratio: Row flexbox cross size</title>
<title>CSS aspect-ratio: Column flexbox cross size</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#line-sizing" title="9.2.3.B">
@ -7,6 +7,6 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: inline-flex; flex-direction: column; height: 100px;">
<div style="display: inline-flex; flex-direction: column; flex-wrap: wrap; height: 100px;">
<div style="background: green; aspect-ratio: 1/1; min-height: 0; height: 50px; flex: 1;"></div>
</div>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<title>CSS aspect-ratio: Row flexbox cross size</title>
<title>CSS aspect-ratio: Column flexbox cross size</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#line-sizing" title="9.2.3.B">
@ -7,6 +7,6 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: inline-flex; flex-direction: column; height: 100px;">
<div style="display: inline-flex; flex-direction: column; flex-wrap: wrap; height: 100px;">
<div style="background: green; aspect-ratio: 1/1; min-height: 0; flex: 1 1 50px;"></div>
</div>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: canvas with aspect-ratio, object-fit and object-position</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio affects the canvas element's ratio, but not the canvas content's ratio.">
<style>
canvas {
width: 100px;
aspect-ratio: 1/3;
object-fit: contain;
object-position: top left;
}
</style>
<script>
window.onload = function() {
const canvas = document.querySelector('canvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 200, 200);
}
</script>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<canvas width=200 height=200></canvas>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: canvas with aspect-ratio and contain:size</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5550">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio's <ratio> is used to determine the canvas' size because contain:size enforces no intrinsic aspect ratio.">
<style>
canvas {
width: 100px;
aspect-ratio: 1/1;
contain: size;
}
</style>
<script>
window.onload = function() {
const canvas = document.querySelector('canvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 200, 200);
}
</script>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<canvas width=200 height=200></canvas>
</html>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: image with aspect-ratio, object-fit and object-position</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio affects the image element's ratio, but not the image content's ratio.">
<style>
div {
display: inline-block;
width: 60px;
height: 100px;
background: green;
}
img {
height: 100px;
aspect-ratio: 3/1;
object-fit: contain;
object-position: top left;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<!-- object-fit:contain should preserve the image's ratio, and scale it to 40x100. -->
<div></div><img src="support/20x50-green.png">
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: image with aspect-ratio and contain:size</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5550">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio's <ratio> is used to determine the image's size because contain:size enforces no intrinsic aspect ratio.">
<style>
img {
width: 100px;
aspect-ratio: 1/1;
contain: size;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<img src="support/20x50-green.png">
</html>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: video with aspect-ratio, object-fit and object-position</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio affects the video element's ratio, but not the video content's ratio.">
<style>
div {
display: inline-block;
width: 60px;
height: 100px;
background: green;
}
video {
height: 100px;
aspect-ratio: 3/1;
object-fit: contain;
object-position: top left;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<!-- object-fit:contain should preserve the video poster's ratio, and scale it to 40x100. -->
<div></div><video poster="support/20x50-green.png"></video>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<title>CSS aspect-ratio: video with aspect-ratio and contain:size</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5550">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="This test verifies aspect-ratio's <ratio> is used to determine the video's size because contain:size enforces no intrinsic aspect ratio.">
<style>
video {
width: 100px;
aspect-ratio: 1/1;
object-fit: fill;
contain: size;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<video poster="support/20x50-green.png"></video>
</html>