mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text: text-align: match-parent</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="assert" content="Text checks that an element with
|
||||
text-align: match-parent inherits its parent's value and calculates
|
||||
'start' and 'end' with respect to its parent's direction">
|
||||
<link rel="match" href="text-align-match-parent-ref.html">
|
||||
<style type="text/css">
|
||||
div.start { text-align: start; }
|
||||
div.end { text-align: end; }
|
||||
div.left { text-align: left; }
|
||||
div.right { text-align: right; }
|
||||
div > div { text-align: match-parent; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>Test passes if each line that says "Left" is aligned left and
|
||||
each line that says "Right" is aligned right</div>
|
||||
<div class="start" dir="ltr"><div dir="ltr">Left</div></div>
|
||||
<div class="start" dir="ltr"><div dir="rtl">Left</div></div>
|
||||
<div class="start" dir="rtl"><div dir="ltr">Right</div></div>
|
||||
<div class="start" dir="rtl"><div dir="rtl">Right</div></div>
|
||||
<div class="end" dir="ltr"><div dir="ltr">Right</div></div>
|
||||
<div class="end" dir="ltr"><div dir="rtl">Right</div></div>
|
||||
<div class="end" dir="rtl"><div dir="ltr">Left</div></div>
|
||||
<div class="end" dir="rtl"><div dir="rtl">Left</div></div>
|
||||
<div class="left" dir="ltr"><div dir="ltr">Left</div></div>
|
||||
<div class="left" dir="ltr"><div dir="rtl">Left</div></div>
|
||||
<div class="left" dir="rtl"><div dir="ltr">Left</div></div>
|
||||
<div class="left" dir="rtl"><div dir="rtl">Left</div></div>
|
||||
<div class="right" dir="ltr"><div dir="ltr">Right</div></div>
|
||||
<div class="right" dir="ltr"><div dir="rtl">Right</div></div>
|
||||
<div class="right" dir="rtl"><div dir="ltr">Right</div></div>
|
||||
<div class="right" dir="rtl"><div dir="rtl">Right</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text: text-align: match-parent</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="flags" content="dom">
|
||||
<meta name="assert" content="Text checks that an element with
|
||||
text-align: match-parent still aligns correctly if the parent's
|
||||
dir attribute is changed">
|
||||
<link rel="match" href="text-align-match-parent-ref.html">
|
||||
<style type="text/css">
|
||||
div.start { text-align: start; }
|
||||
div.end { text-align: end; }
|
||||
div.left { text-align: left; }
|
||||
div.right { text-align: right; }
|
||||
div > div { text-align: match-parent; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function changeParentDir()
|
||||
{
|
||||
for (parent = 0; parent < 16; ++parent) {
|
||||
var parentDiv = document.getElementById("d" + parent);
|
||||
if (parentDiv.dir == "rtl") {
|
||||
parentDiv.dir = "ltr";
|
||||
} else {
|
||||
parentDiv.dir = "rtl";
|
||||
}
|
||||
}
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="changeParentDir()">
|
||||
<div>Test passes if each line that says "Left" is aligned left and
|
||||
each line that says "Right" is aligned right</div>
|
||||
<div id="d0" class="start" dir="rtl"><div dir="ltr">Left</div></div>
|
||||
<div id="d1" class="start" dir="rtl"><div dir="rtl">Left</div></div>
|
||||
<div id="d2" class="start" dir="ltr"><div dir="ltr">Right</div></div>
|
||||
<div id="d3" class="start" dir="ltr"><div dir="rtl">Right</div></div>
|
||||
<div id="d4" class="end" dir="rtl"><div dir="ltr">Right</div></div>
|
||||
<div id="d5" class="end" dir="rtl"><div dir="rtl">Right</div></div>
|
||||
<div id="d6" class="end" dir="ltr"><div dir="ltr">Left</div></div>
|
||||
<div id="d7" class="end" dir="ltr"><div dir="rtl">Left</div></div>
|
||||
<div id="d8" class="left" dir="rtl"><div dir="ltr">Left</div></div>
|
||||
<div id="d9" class="left" dir="rtl"><div dir="rtl">Left</div></div>
|
||||
<div id="d10" class="left" dir="ltr"><div dir="ltr">Left</div></div>
|
||||
<div id="d11" class="left" dir="ltr"><div dir="rtl">Left</div></div>
|
||||
<div id="d12" class="right" dir="rtl"><div dir="ltr">Right</div></div>
|
||||
<div id="d13" class="right" dir="rtl"><div dir="rtl">Right</div></div>
|
||||
<div id="d14" class="right" dir="ltr"><div dir="ltr">Right</div></div>
|
||||
<div id="d15" class="right" dir="ltr"><div dir="rtl">Right</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text: text-align: match-parent</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="flags" content="dom">
|
||||
<meta name="assert" content="Text checks that an element whose
|
||||
text-align property is changed to match-parent aligns correctly">
|
||||
<link rel="match" href="text-align-match-parent-ref.html">
|
||||
<style type="text/css">
|
||||
div.start { text-align: start; }
|
||||
div.end { text-align: end; }
|
||||
div.left { text-align: left; }
|
||||
div.right { text-align: right; }
|
||||
div.center { text-align: center; }
|
||||
div.match { text-align: match-parent; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function changeChildAlign()
|
||||
{
|
||||
for (child = 0; child < 16; ++child) {
|
||||
var childDiv = document.getElementById("d" + child);
|
||||
childDiv.className = "match";
|
||||
}
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="changeChildAlign()">
|
||||
<div>Test passes if each line that says "Left" is aligned left and
|
||||
each line that says "Right" is aligned right</div>
|
||||
<div class="start" dir="ltr"><div id="d0" class="center" dir="ltr">Left</div></div>
|
||||
<div class="start" dir="ltr"><div id="d1" class="center" dir="rtl">Left</div></div>
|
||||
<div class="start" dir="rtl"><div id="d2" class="center" dir="ltr">Right</div></div>
|
||||
<div class="start" dir="rtl"><div id="d3" class="center" dir="rtl">Right</div></div>
|
||||
<div class="end" dir="ltr"><div id="d4" class="center" dir="ltr">Right</div></div>
|
||||
<div class="end" dir="ltr"><div id="d5" class="center" dir="rtl">Right</div></div>
|
||||
<div class="end" dir="rtl"><div id="d6" class="center" dir="ltr">Left</div></div>
|
||||
<div class="end" dir="rtl"><div id="d7" class="center" dir="rtl">Left</div></div>
|
||||
<div class="left" dir="ltr"><div id="d8" class="center" dir="ltr">Left</div></div>
|
||||
<div class="left" dir="ltr"><div id="d9" class="center" dir="rtl">Left</div></div>
|
||||
<div class="left" dir="rtl"><div id="d10" class="center" dir="ltr">Left</div></div>
|
||||
<div class="left" dir="rtl"><div id="d11" class="center" dir="rtl">Left</div></div>
|
||||
<div class="right" dir="ltr"><div id="d12" class="center" dir="ltr">Right</div></div>
|
||||
<div class="right" dir="ltr"><div id="d13" class="center" dir="rtl">Right</div></div>
|
||||
<div class="right" dir="rtl"><div id="d14" class="center" dir="ltr">Right</div></div>
|
||||
<div class="right" dir="rtl"><div id="d15" class="center" dir="rtl">Right</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text: text-align: match-parent</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="flags" content="dom">
|
||||
<meta name="assert" content="Text checks that an element with
|
||||
text-align: match-parent still aligns correctly if the parent's
|
||||
width is changed">
|
||||
<link rel="match" href="text-align-match-parent-ref.html">
|
||||
<style type="text/css">
|
||||
div.start { text-align: start; }
|
||||
div.end { text-align: end; }
|
||||
div.left { text-align: left; }
|
||||
div.right { text-align: right; }
|
||||
div > div { text-align: match-parent; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function changeParentWidth()
|
||||
{
|
||||
for (parent = 0; parent < 16; ++parent) {
|
||||
var parentDiv = document.getElementById("d" + parent);
|
||||
parentDiv.style.width = "";
|
||||
}
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="changeParentWidth()">
|
||||
<div>Test passes if each line that says "Left" is aligned left and
|
||||
each line that says "Right" is aligned right</div>
|
||||
<div id="d0" style="width: 50%;" class="start" dir="ltr"><div dir="ltr">Left</div></div>
|
||||
<div id="d1" style="width: 50%;" class="start" dir="ltr"><div dir="rtl">Left</div></div>
|
||||
<div id="d2" style="width: 50%;" class="start" dir="rtl"><div dir="ltr">Right</div></div>
|
||||
<div id="d3" style="width: 50%;" class="start" dir="rtl"><div dir="rtl">Right</div></div>
|
||||
<div id="d4" style="width: 50%;" class="end" dir="ltr"><div dir="ltr">Right</div></div>
|
||||
<div id="d5" style="width: 50%;" class="end" dir="ltr"><div dir="rtl">Right</div></div>
|
||||
<div id="d6" style="width: 50%;" class="end" dir="rtl"><div dir="ltr">Left</div></div>
|
||||
<div id="d7" style="width: 50%;" class="end" dir="rtl"><div dir="rtl">Left</div></div>
|
||||
<div id="d8" style="width: 50%;" class="left" dir="ltr"><div dir="ltr">Left</div></div>
|
||||
<div id="d9" style="width: 50%;" class="left" dir="ltr"><div dir="rtl">Left</div></div>
|
||||
<div id="d10" style="width: 50%;" class="left" dir="rtl"><div dir="ltr">Left</div></div>
|
||||
<div id="d11" style="width: 50%;" class="left" dir="rtl"><div dir="rtl">Left</div></div>
|
||||
<div id="d12" style="width: 50%;" class="right" dir="ltr"><div dir="ltr">Right</div></div>
|
||||
<div id="d13" style="width: 50%;" class="right" dir="ltr"><div dir="rtl">Right</div></div>
|
||||
<div id="d14" style="width: 50%;" class="right" dir="rtl"><div dir="ltr">Right</div></div>
|
||||
<div id="d15" style="width: 50%;" class="right" dir="rtl"><div dir="rtl">Right</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Reftest Reference</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<style type="text/css">
|
||||
div.left { text-align: left; }
|
||||
div.right { text-align: right; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>Test passes if each line that says "Left" is aligned left and
|
||||
each line that says "Right" is aligned right</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="left">Left</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="right">Right</div>
|
||||
<div class="right">Right</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html dir="ltr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Reftest Reference</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<style type="text/css">
|
||||
html { text-align: start; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This line should be aligned left</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html dir="ltr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text: text-align: match-parent</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="assert" content="Text checks that
|
||||
text-align: match-parent on a root element with dir=ltr is
|
||||
equivalent to text-align: start">
|
||||
<link rel="match" href="text-align-match-parent-root-ltr-ref.html">
|
||||
<style type="text/css">
|
||||
html { text-align: match-parent; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This line should be aligned left</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html dir="rtl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Reftest Reference</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<style type="text/css">
|
||||
html { text-align: start; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This line should be aligned right</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html dir="rtl">
|
||||
<head>
|
||||
<title>CSS Text: text-align: match-parent</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="assert" content="Text checks that
|
||||
text-align: match-parent on a root element with dir=rtl is
|
||||
equivalent to text-align: start">
|
||||
<link rel="match" href="text-align-match-parent-root-rtl-ref.html">
|
||||
<style type="text/css">
|
||||
html { text-align: match-parent; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This line should be aligned right</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue