Update web-platform-tests to revision 8d1253647cfe3809ddf58a4ad7c9da5f26985d7e

This commit is contained in:
WPT Sync Bot 2020-11-13 08:20:12 +00:00
parent 553ff20468
commit 48c420fdb5
440 changed files with 6186 additions and 3542 deletions

View file

@ -7,5 +7,5 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="background: green; width: 100px; aspect-ratio: 0/1;"></div>
<div style="background: red; width: 100px; aspect-ratio: 0/1;"></div>
<div style="background: green; width: 100px; height: 100px;"></div>

View file

@ -7,6 +7,6 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="width: 100px;">
<div style="width: 100px; background: red;">
<div style="background: green; height: 100px; aspect-ratio: 0/1;"></div>
</div>

View file

@ -7,5 +7,5 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="background: green; width: 100px; aspect-ratio: 1/0;"></div>
<div style="background: red; width: 100px; aspect-ratio: 1/0;"></div>
<div style="background: green; width: 100px; height: 100px;"></div>

View file

@ -7,6 +7,6 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="width: 100px;">
<div style="width: 100px; background: red;">
<div style="background: green; height: 100px; aspect-ratio: 1/0;"></div>
</div>

View file

@ -8,5 +8,5 @@
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<!-- "aspect-ratio: 0/0" behaves as "aspect-ratio: 1/0"-->
<div style="background: green; width: 100px; aspect-ratio: 0/0;"></div>
<div style="background: red; width: 100px; aspect-ratio: 0/0;"></div>
<div style="background: green; width: 100px; height: 100px;"></div>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<meta charset="utf-8">
<title>CSS Sizing Test: Testing intrinsic size fallback 300x150 for some replaced elements.</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-3/#intrinsic">
<meta name="assert" content="This test verifies that the intrinsic size fallback is 300px width and 150px height for replaced elements with no intrinsic size and no intrinsic ratio, regardless of the writing-mode.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
.test {
border: 0;
padding: 0;
background-color: blue;
}
.vertical {
writing-mode: vertical-rl;
}
</style>
<body onload="checkLayout('.test')">
<!-- horizontal writing-mode -->
<iframe class="test" data-expected-width="300" data-expected-height="150"></iframe>
<video class="test" data-expected-width="300" data-expected-height="150"></video>
<svg class="test" data-expected-width="300" data-expected-height="150"></svg>
<img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>"
class="test" data-expected-width="300" data-expected-height="150">
<!-- vertical writing-mode -->
<iframe class="test vertical" data-expected-width="300" data-expected-height="150"></iframe>
<video class="test vertical" data-expected-width="300" data-expected-height="150"></video>
<svg class="test vertical" data-expected-width="300" data-expected-height="150"></svg>
<img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>"
class="test vertical" data-expected-width="300" data-expected-height="150">
</body>
</html>