mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision b'421155a1c8752a36b465e62f466b18f821190e08'
This commit is contained in:
parent
871cefc926
commit
fd56698ec7
722 changed files with 19686 additions and 8130 deletions
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text Test: text-align - computed value for match-parent on the root element</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text/#valdef-text-align-match-parent">
|
||||
<meta name="assert" content="'text-align: match-parent' on the root element with 'direction: rtl' should compute to 'start'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
html {
|
||||
text-align: match-parent;
|
||||
direction: rtl;
|
||||
}
|
||||
#log {
|
||||
direction: ltr;
|
||||
text-align: start;
|
||||
}
|
||||
</style>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.documentElement).textAlign, 'start');
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text 3 tests: match parent on text-align-last</title>
|
||||
<link rel="author" title="Florian RIvoal" href="https://florian.rivoal.net">
|
||||
<style>
|
||||
section {
|
||||
font-family: monospace;
|
||||
width: 3ch;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if the two “2” are vertically aligned.
|
||||
<section>
|
||||
<div>1 2<br> 2</div>
|
||||
</section>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text 3 tests: match parent on text-align-last</title>
|
||||
<link rel="author" title="Florian RIvoal" href="https://florian.rivoal.net">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-text-3/#text-align-property">
|
||||
<meta name="assert" content="Check that setting text-align to match parent has the correct effect on text-align-last (even if text-align-all is overridden).">
|
||||
<link rel="match" href="text-align-match-parent-05-ref.html">
|
||||
<style>
|
||||
section {
|
||||
font-family: monospace;
|
||||
width: 3ch;
|
||||
}
|
||||
div {
|
||||
text-align: match-parent;
|
||||
text-align-all: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if the two “2” are vertically aligned.
|
||||
<section dir=rtl>
|
||||
<div dir=ltr>1 2 2</div>
|
||||
</section>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html dir="rtl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text: text-align: match-parent on root, ignoring body propagation</title>
|
||||
<link rel="author" title="Simon Montagu" href="mailto:smontagu@mozilla.com">
|
||||
<link rel="author" title="Florian RIvoal" href="https://florian.rivoal.net">
|
||||
<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 (not a physical left or right),
|
||||
inheriting as a logical value">
|
||||
<link rel="match" href="text-align-match-parent-root-ltr-ref.html">
|
||||
<style type="text/css">
|
||||
html { text-align: match-parent; }
|
||||
</style>
|
||||
</head>
|
||||
<body dir=ltr>
|
||||
<p>This line should be aligned left</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue