mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update web-platform-tests to revision 60ad712df2130b21908c4a055abf241d68ba9647
This commit is contained in:
parent
ccc4149b30
commit
03d8b09382
46 changed files with 1257 additions and 139 deletions
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test Reference</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<table style="border-collapse: collapse; border-style: solid;">
|
||||
<td>Should see a non-solid border</td>
|
||||
</table>
|
|
@ -0,0 +1,10 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test: border-collapsed tables don't unconditionally render double borders as solid</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1521066">
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/tables.html#collapsing-borders">
|
||||
<link rel="mismatch" href="border-collapse-double-border-notref.html">
|
||||
<table style="border-collapse: collapse; border-style: double;">
|
||||
<td>Should see a non-solid border</td>
|
||||
</table>
|
|
@ -0,0 +1,25 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test Reference</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<style>
|
||||
table {
|
||||
font-size: 2em;
|
||||
border-collapse: collapse;
|
||||
border: 5px solid green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>You should see no non-solid borders and no red.</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="4" style="border: 5px solid purple;">hello</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-right: 5px solid blue; border-bottom: 9px hidden red;">one</td>
|
||||
<td style="border-right: 5px solid blue;">two</td>
|
||||
<td>three</td>
|
||||
<td style="border-left: 5px solid blue">four</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -0,0 +1,28 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test: Table border resolution rules</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1520138">
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/tables.html#border-conflict-resolution">
|
||||
<link rel="match" href="border-conflict-resolution-ref.html">
|
||||
<style>
|
||||
table {
|
||||
font-size: 2em;
|
||||
border-collapse: collapse;
|
||||
border: 5px solid green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>You should see no non-solid borders and no red.</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="4" style="border: 5px solid purple;">hello</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-top: 5px solid blue; border-right: 5px solid blue; border-bottom: 9px hidden red; border-left: 9px none;">one</td>
|
||||
<td style="border-top: 5px dashed blue; border-right: 5px solid blue; border-bottom: 5px outset red;">two</td>
|
||||
<td style="border-top: 5px ridge blue; border-right: 5px ridge red; border-bottom: 5px inset red;">three</td>
|
||||
<td style="border-left: 5px solid blue; border-bottom: 5px dotted red;">four</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module: getComputedValue().borderCollapse</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-border-collapse">
|
||||
<meta name="assert" content="border-collapse computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("border-collapse", "separate");
|
||||
test_computed_value("border-collapse", "collapse");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing border-collapse with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-border-collapse">
|
||||
<meta name="assert" content="border-collapse supports only the grammar 'separate | collapse'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("border-collapse", "none");
|
||||
test_invalid_value("border-collapse", "separate collapse");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing border-collapse with valid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-border-collapse">
|
||||
<meta name="assert" content="border-collapse supports the full grammar 'separate | collapse'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("border-collapse", "separate");
|
||||
test_valid_value("border-collapse", "collapse");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module: getComputedValue().borderSpacing</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-border-spacing">
|
||||
<meta name="assert" content="border-spacing computed value is two absolute lengths.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<style>
|
||||
#target {
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
test_computed_value("border-spacing", "10px 20px");
|
||||
test_computed_value("border-spacing", "0", "0px 0px");
|
||||
test_computed_value("border-spacing", "calc(10px + 0.5em) calc(10px - 0.5em)", "30px 0px");
|
||||
test_computed_value("border-spacing", "calc(10px - 0.5em) calc(10px + 0.5em)", "0px 30px");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing border-spacing with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-border-spacing">
|
||||
<meta name="assert" content="border-spacing supports only the grammar '<length>{1,2}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("border-spacing", "10%");
|
||||
test_invalid_value("border-spacing", "-20px");
|
||||
test_invalid_value("border-spacing", "30");
|
||||
test_invalid_value("border-spacing", "40px 50px 60px");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing border-spacing with valid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-border-spacing">
|
||||
<meta name="assert" content="border-spacing supports the full grammar '<length>{1,2}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("border-spacing", "0px");
|
||||
test_valid_value("border-spacing", "10px 20px");
|
||||
test_valid_value("border-spacing", "calc(10px + 0.5em) calc(10px - 0.5em)");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module: getComputedValue().captionSide</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-caption-side">
|
||||
<meta name="assert" content="caption-side computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("caption-side", "top");
|
||||
test_computed_value("caption-side", "bottom");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing caption-side with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-caption-side">
|
||||
<meta name="assert" content="caption-side supports only the grammar 'top | bottom'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("caption-side", "auto");
|
||||
test_invalid_value("caption-side", "left");
|
||||
test_invalid_value("caption-side", "right");
|
||||
test_invalid_value("caption-side", "top bottom");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing caption-side with valid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-caption-side">
|
||||
<meta name="assert" content="caption-side supports the full grammar 'top | bottom'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("caption-side", "top");
|
||||
test_valid_value("caption-side", "bottom");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module: getComputedValue().emptyCells</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-empty-cells">
|
||||
<meta name="assert" content="empty-cells computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("empty-cells", "show");
|
||||
test_computed_value("empty-cells", "hide");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing empty-cells with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-empty-cells">
|
||||
<meta name="assert" content="empty-cells supports only the grammar 'show | hide'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("empty-cells", "auto");
|
||||
test_invalid_value("empty-cells", "show hide");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing empty-cells with valid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-empty-cells">
|
||||
<meta name="assert" content="empty-cells supports the full grammar 'show | hide'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("empty-cells", "show");
|
||||
test_valid_value("empty-cells", "hide");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module: getComputedValue().tableLayout</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-table-layout">
|
||||
<meta name="assert" content="table-layout computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/computed-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
test_computed_value("table-layout", "auto");
|
||||
test_computed_value("table-layout", "fixed");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing table-layout with invalid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-table-layout">
|
||||
<meta name="assert" content="table-layout supports only the grammar 'auto | fixed'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("table-layout", "none");
|
||||
test_invalid_value("table-layout", "auto fixed");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Table Module Test: parsing table-layout with valid values</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables/#propdef-table-layout">
|
||||
<meta name="assert" content="table-layout supports the full grammar 'auto | fixed'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("table-layout", "auto");
|
||||
test_valid_value("table-layout", "fixed");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue