mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Update web-platform-tests to revision 9ca57e052ba1b19fa3dd46c6aa656e8d529469a8
This commit is contained in:
parent
68cb8f3d59
commit
75d6484415
1377 changed files with 31062 additions and 16983 deletions
|
@ -3,7 +3,7 @@
|
|||
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Flexbox Test Reference: Test for pagination of a nested float element in a flex item in a printing context</title>
|
||||
<title>CSS Flexbox Test: Test for pagination of a nested float element in a flex item in a printing context</title>
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Flexbox Test Reference: Test for pagination of a nested float element with clearance in a flex item in a printing context</title>
|
||||
<title>CSS Flexbox Test: Test for pagination of a nested float element with clearance in a flex item in a printing context</title>
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Flexbox Test: Test for pagination of a nested float element in a flex item in a printing context</title>
|
||||
<title>CSS Flexbox Test Reference: Test for pagination of a nested float element in a flex item in a printing context</title>
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<link href="support/flexbox.css" rel="stylesheet">
|
||||
<style>
|
||||
.red {
|
||||
width: 600px;
|
||||
height: 400px;
|
||||
background: red;
|
||||
}
|
||||
|
@ -20,7 +21,10 @@ canvas {
|
|||
|
||||
<div class="red">
|
||||
<div class="flexbox column">
|
||||
<canvas id="canvas" data-expected-height="400"></canvas>
|
||||
<!-- The height=400 attribute makes the aspect ratio be 300x400. 300 from
|
||||
the fallback width of replaced elements. 400 from the attribute.
|
||||
After stretching to 600px wide, the height should be 800px. -->
|
||||
<canvas id="canvas" data-expected-height="800"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<title>Aspect-ratio items with definite cross sizes from stretching</title>
|
||||
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" title="Section B">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#definite-sizes" title="1.">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="Flex base size is derived from aspect ratio when item has definite cross size due to stretching.">
|
||||
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
|
||||
<!-- Firefox 80 and Chrome 86 fail this test identically. They both show a 150x100 green rectangle. -->
|
||||
|
||||
<div style="display: flex; width: 150px; height: 100px;">
|
||||
<img src="support/200x200-green.png" style="min-width: 0px; flex-shrink: 0;">
|
||||
</div>
|
|
@ -0,0 +1,67 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexbox: table descendants</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
|
||||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1123100">
|
||||
<meta name="assert" content="Percentage sized flex table does not use percent for intrinsic, or layout size.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<style>
|
||||
.container {
|
||||
display:flex;
|
||||
width: 200px;
|
||||
}
|
||||
.left {
|
||||
width:200px;
|
||||
background:yellow;
|
||||
}
|
||||
main table {
|
||||
border-spacing: 0;
|
||||
background: red;
|
||||
}
|
||||
.spacer {
|
||||
display:inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: green;
|
||||
}
|
||||
main td {
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="container">
|
||||
<div class="left">
|
||||
</div>
|
||||
<table style="width:100%" data-expected-width=100>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="left">
|
||||
</div>
|
||||
<table style="width:70%; flex-basis: 200px" data-expected-width=100>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
<td data-expected-width=20><div class="spacer"></div><div class="spacer"></div></td>
|
||||
</table>
|
||||
</div>
|
||||
</main>
|
||||
<div id=log></div>
|
||||
|
||||
<script>
|
||||
checkLayout("table");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue