mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Move border_collapse_simple_a.html to wpt reftests.
This commit is contained in:
parent
ecee44da0e
commit
30e8148b93
4 changed files with 25 additions and 1 deletions
|
@ -659,6 +659,18 @@
|
|||
"url": "/_mozilla/css/border_collapse_missing_cell_a.html"
|
||||
}
|
||||
],
|
||||
"css/border_collapse_simple_a.html": [
|
||||
{
|
||||
"path": "css/border_collapse_simple_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/border_collapse_simple_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/border_collapse_simple_a.html"
|
||||
}
|
||||
],
|
||||
"css/class-namespaces.html": [
|
||||
{
|
||||
"path": "css/class-namespaces.html",
|
||||
|
@ -4380,6 +4392,18 @@
|
|||
"url": "/_mozilla/css/border_collapse_missing_cell_a.html"
|
||||
}
|
||||
],
|
||||
"css/border_collapse_simple_a.html": [
|
||||
{
|
||||
"path": "css/border_collapse_simple_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/border_collapse_simple_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/border_collapse_simple_a.html"
|
||||
}
|
||||
],
|
||||
"css/class-namespaces.html": [
|
||||
{
|
||||
"path": "css/class-namespaces.html",
|
||||
|
|
73
tests/wpt/mozilla/tests/css/border_collapse_simple_a.html
Normal file
73
tests/wpt/mozilla/tests/css/border_collapse_simple_a.html
Normal file
|
@ -0,0 +1,73 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!--
|
||||
Tests that border collapse override and border collapse positioning works. All border widths
|
||||
are even numbers to avoid subpixel rounding issues (the handling of which is not spec'd).
|
||||
|
||||
FIXME(pcwalton): This is currently offset by -2px in block and inline directions because we
|
||||
don't correctly handle collapsed borders when calculating `table_border_padding` in
|
||||
`table_wrapper.rs`.
|
||||
-->
|
||||
<link rel=match href=border_collapse_simple_ref.html>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
html {
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
/* See `FIXME` above. */
|
||||
padding: 2px;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border: 4px solid black;
|
||||
}
|
||||
td {
|
||||
border: 2px solid black;
|
||||
padding: 16px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
td.cell5 {
|
||||
border: 30px solid black;
|
||||
}
|
||||
td.cell6 {
|
||||
border: 4px solid black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr id="row1">
|
||||
<td>
|
||||
<td>
|
||||
<td>
|
||||
</tr>
|
||||
<tr id="row2">
|
||||
<td>
|
||||
<td class="cell5">
|
||||
<td class="cell6">
|
||||
</tr>
|
||||
<tr id="row3">
|
||||
<td>
|
||||
<td>
|
||||
<td>
|
||||
</tr>
|
||||
<tr id="row4">
|
||||
<td>
|
||||
<td>
|
||||
<td>
|
||||
</tr>
|
||||
<tr id="row5">
|
||||
<td>
|
||||
<td>
|
||||
<td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
136
tests/wpt/mozilla/tests/css/border_collapse_simple_ref.html
Normal file
136
tests/wpt/mozilla/tests/css/border_collapse_simple_ref.html
Normal file
|
@ -0,0 +1,136 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
border-style: solid;
|
||||
border-color: black;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#c00 {
|
||||
border-width: 4px 2px 2px 4px;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
width: 82px;
|
||||
height: 82px;
|
||||
}
|
||||
#c01 {
|
||||
border-width: 4px 2px 0 0;
|
||||
left: 82px;
|
||||
top: 0px;
|
||||
width: 94px;
|
||||
height: 66px;
|
||||
}
|
||||
#c02 {
|
||||
border-width: 4px 4px 0 0;
|
||||
left: 176px;
|
||||
top: 0px;
|
||||
width: 82px;
|
||||
height: 79px;
|
||||
}
|
||||
|
||||
#c10 {
|
||||
border-width: 0 0 2px 4px;
|
||||
left: 0px;
|
||||
top: 82px;
|
||||
width: 66px;
|
||||
height: 94px;
|
||||
}
|
||||
#c11 {
|
||||
border-width: 30px;
|
||||
left: 66px;
|
||||
top: 66px;
|
||||
width: 124px;
|
||||
height: 124px;
|
||||
}
|
||||
#c12 {
|
||||
border-width: 4px 4px 4px 0;
|
||||
left: 190px;
|
||||
top: 79px;
|
||||
width: 68px;
|
||||
height: 98px;
|
||||
}
|
||||
|
||||
#c20 {
|
||||
border-width: 0 2px 2px 4px;
|
||||
left: 0px;
|
||||
top: 176px;
|
||||
width: 82px;
|
||||
height: 80px;
|
||||
}
|
||||
#c21 {
|
||||
border-width: 0 2px 2px 0;
|
||||
left: 82px;
|
||||
top: 190px;
|
||||
width: 94px;
|
||||
height: 66px;
|
||||
}
|
||||
#c22 {
|
||||
border-width: 0 4px 2px 0;
|
||||
left: 176px;
|
||||
top: 177px;
|
||||
width: 82px;
|
||||
height: 79px;
|
||||
}
|
||||
|
||||
#c30 {
|
||||
border-width: 0 2px 2px 4px;
|
||||
left: 0px;
|
||||
top: 256px;
|
||||
width: 82px;
|
||||
height: 66px;
|
||||
}
|
||||
#c31 {
|
||||
border-width: 0 2px 2px 0;
|
||||
left: 82px;
|
||||
top: 256px;
|
||||
width: 94px;
|
||||
height: 66px;
|
||||
}
|
||||
#c32 {
|
||||
border-width: 0 4px 2px 0;
|
||||
left: 176px;
|
||||
top: 256px;
|
||||
width: 82px;
|
||||
height: 66px;
|
||||
}
|
||||
|
||||
#c40 {
|
||||
border-width: 0 2px 4px 4px;
|
||||
left: 0px;
|
||||
top: 322px;
|
||||
width: 82px;
|
||||
height: 68px;
|
||||
}
|
||||
#c41 {
|
||||
border-width: 0 2px 4px 0;
|
||||
left: 82px;
|
||||
top: 322px;
|
||||
width: 94px;
|
||||
height: 68px;
|
||||
}
|
||||
#c42 {
|
||||
border-width: 0 4px 4px 0;
|
||||
left: 176px;
|
||||
top: 322px;
|
||||
width: 82px;
|
||||
height: 68px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=c00></div><div id=c01></div><div id=c02></div>
|
||||
<div id=c10></div><div id=c11></div><div id=c12></div>
|
||||
<div id=c20></div><div id=c21></div><div id=c22></div>
|
||||
<div id=c30></div><div id=c31></div><div id=c32></div>
|
||||
<div id=c40></div><div id=c41></div><div id=c42></div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue