mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision 6366ae15c2bc2314adca4321357c68bb468fec98
This commit is contained in:
parent
e47e884cc7
commit
6b740f0283
328 changed files with 3757 additions and 591 deletions
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<link href="../support/flexbox.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
.flexbox {
|
||||
background-color: lightgrey;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class='flexbox'>
|
||||
<!-- flex item: block child -->
|
||||
<div>block</div>
|
||||
<!-- flex item: anonymous block box around inline content -->
|
||||
anonymous item 2
|
||||
<!-- flex item: inline child -->
|
||||
<span>item 3</span>
|
||||
</div>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.container > * {
|
||||
position: absolute;
|
||||
}
|
||||
.large {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
.small {
|
||||
left: 25px;
|
||||
height: 25px;
|
||||
width: 50px;
|
||||
}
|
||||
</style>
|
||||
<div>The green boxes should be above the orange boxes, which should be above the purple boxes, which are above the salmon boxes.<div>
|
||||
<div class="container" style="position:relative">
|
||||
<div class="large" style="z-index: 1; background-color: salmon;"></div>
|
||||
<div class="large" style="z-index: 100; background-color: orange; left: 50px;"></div>
|
||||
<div class="small" style="z-index: 150; background-color: green"></div>
|
||||
<div class="small" style="z-index: 50; background-color: purple; top: 25px;"></div>
|
||||
</div>
|
||||
<div class="container" style="position:relative; top: 50px">
|
||||
<img class="large" style="z-index: 1; background-color: salmon;"></img>
|
||||
<img class="large" style="z-index: 100; background-color: orange; left: 50px;"></img>
|
||||
<img class="small" style="z-index: 150; background-color: green"></img>
|
||||
<img class="small" style="z-index: 50; background-color: purple; top: 25px;"></img>
|
||||
</div>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table style="background-color: #aaa">
|
||||
<tr><td colspan=2 style="height: 5px"></td></tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top"><div style="background-color: pink">third</div></td>
|
||||
<td style="background-color: yellow">fourth<br>fourth</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color: lightblue">first<br>first<br>first</td>
|
||||
<td style="vertical-align: top"><div style="background-color: lightgreen">second</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="background-color: #aaa">
|
||||
<tr>
|
||||
<td style="vertical-align: top"><div style="background-color: pink">third</div></td>
|
||||
<td style="background-color: yellow">fourth<br>fourth</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 style="height: 5px"></td></tr>
|
||||
<tr>
|
||||
<td style="background-color: lightblue">first<br>first<br>first</td>
|
||||
<td style="vertical-align: top"><div style="background-color: lightgreen">second</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="background-color: #aaa">
|
||||
<tr>
|
||||
<td style="vertical-align: top; background-color: lightblue; height: 100px">first</td>
|
||||
<td style="vertical-align: bottom"><div style="background-color: lightgreen">second</div><div> </div></td>
|
||||
<td style="vertical-align: bottom"><div style="background-color: pink">third<br>third</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,85 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
.testcase {
|
||||
float: left;
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
||||
.testcase > :nth-child(1) {
|
||||
background-color: lightblue;
|
||||
}
|
||||
.testcase > :nth-child(2) {
|
||||
background-color: lightgreen;
|
||||
}
|
||||
.testcase > :nth-child(3) {
|
||||
background-color: pink;
|
||||
}
|
||||
.testcase > :nth-child(4) {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
|
||||
<div class="testcase" style="height: 60px; width: 100px">
|
||||
<div style="width: 100px; height: 20px"></div>
|
||||
<div style="width: 100px; height: 10px"></div>
|
||||
<div style="width: 100px; height: 10px"></div>
|
||||
<div style="width: 100px; height: 20px"></div>
|
||||
</div>
|
||||
<p style="clear:left">The grey background should be 100px wide.</p>
|
||||
|
||||
<div class="testcase" style="height: 30px; width: 100px">
|
||||
<table>
|
||||
<td>
|
||||
<div style="width: 100px; height: 20px"></div>
|
||||
<div style="width: 100px; height: 10px; background-color: lightgreen"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div style="width: 100px; height: 10px; background-color: pink"></div>
|
||||
<div style="width: 100px; height: 20px; background-color: yellow"></div>
|
||||
</td>
|
||||
</table>
|
||||
</div>
|
||||
<p style="clear:left">The grey background should be 100px wide.</p>
|
||||
|
||||
<div style="width: 150px">
|
||||
<div class="testcase" style="height: 60px; width: 100px">
|
||||
<div style="width: 100px; height: 20px"></div>
|
||||
<div style="width: 100px; height: 10px"></div>
|
||||
<div style="width: 100px; height: 10px"></div>
|
||||
<div style="width: 100px; height: 20px"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p style="clear:left">The grey background should be 100px wide.</p>
|
||||
|
||||
<div style="width: 150px">
|
||||
<div class="testcase" style="height: 35px; width: 100px;">
|
||||
<table>
|
||||
<td>
|
||||
<div style="width: 100px; height: 20px"></div>
|
||||
<div style="width: 100px; height: 10px; background-color: lightgreen"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div style="width: 100px; height: 10px; background-color: pink"></div>
|
||||
<div style="width: 100px; height: 20px; background-color: yellow"></div>
|
||||
</td>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<p style="clear:left">The grey background should be 100px wide and 5px should
|
||||
stick out the bottom.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<p>You should see no red.</p>
|
||||
|
||||
<div style="height: 40px; background-color: green;"></div>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
div.flex {
|
||||
display: flex;
|
||||
width: 100px;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex">
|
||||
AAAAAAAAAAAAAAAAAAAA
|
||||
</div>
|
||||
<div class="flex">
|
||||
<b>bbbbbbbbbbbbbbbbbbbb</b>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div>cccccccccccccccccccc</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
DDDDDDDDDDDDDDDDDDDD<b>ee</b>FFFFFFFFFFFFFFFFFFFF
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue