mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 8d1253647cfe3809ddf58a4ad7c9da5f26985d7e
This commit is contained in:
parent
553ff20468
commit
48c420fdb5
440 changed files with 6186 additions and 3542 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue