mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update CSS tests to revision 465c03e3d8d42ce98b9dfa0c8d8e7b4b8d48ebd7
This commit is contained in:
parent
ea000471d3
commit
6a4ad433a2
432 changed files with 6691 additions and 83 deletions
|
@ -13,7 +13,7 @@
|
|||
<body>
|
||||
|
||||
<h1>CSS Writing Modes Module Level 3 CR Test Suite</h1>
|
||||
<h2>Inline Direction and Bidirectionality (172 tests)</h2>
|
||||
<h2>Inline Direction and Bidirectionality (173 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column">
|
||||
<col id="refs-column">
|
||||
|
@ -1451,7 +1451,7 @@
|
|||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s2.2">+</a>
|
||||
<a href="http://www.w3.org/TR/css-writing-modes-3/#unicode-bidi">2.2 Embeddings and Overrides: the unicode-bidi property</a></th></tr>
|
||||
<!-- 20 tests -->
|
||||
<!-- 21 tests -->
|
||||
<tr id="bidi-alt-001-2.2" class="primary">
|
||||
<td><strong>
|
||||
<a href="bidi-alt-001.htm">bidi-alt-001</a></strong></td>
|
||||
|
@ -1661,6 +1661,17 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="unicode-bidi-parsing-001-2.2" class="dom script">
|
||||
<td>
|
||||
<a href="unicode-bidi-parsing-001.htm">unicode-bidi-parsing-001</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override
|
||||
<ul class="assert">
|
||||
<li>This test asserts the parser and getComputedStyle works correctly for the unicode-bidi: normal, embed, bidi-override.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="unicode-bidi-parsing-002-2.2" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="unicode-bidi-parsing-002.htm">unicode-bidi-parsing-002</a></strong></td>
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<style type="text/css">
|
||||
img
|
||||
{
|
||||
padding-left: 60px;
|
||||
padding-left: 100px;
|
||||
vertical-align: top;
|
||||
}
|
||||
img + br + img
|
||||
{
|
||||
padding-left: 108px; /* 60 px (padding-left) + 48 px (the position of small blue box)*/
|
||||
padding-left: 180px; /* 100 px (padding-left) + 80 px (the position of small blue box)*/
|
||||
}
|
||||
</style>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
<p>Test passes if the <strong>right edge</strong> of an irregular polygon is straight and unbroken.</p>
|
||||
|
||||
<div>
|
||||
<img class="blue" src="support/swatch-blue.png" width="60" height="60" alt="Image download support must be enabled"><br><img class="blue" src="support/swatch-blue.png" width="12" height="12" alt="Image download support must be enabled">
|
||||
<img class="blue" src="support/swatch-blue.png" width="100" height="100" alt="Image download support must be enabled"><br><img class="blue" src="support/swatch-blue.png" width="20" height="20" alt="Image download support must be enabled">
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<style type="text/css">
|
||||
img
|
||||
{
|
||||
padding-left: 60px;
|
||||
padding-left: 100px;
|
||||
vertical-align: top;
|
||||
}
|
||||
img + br + img
|
||||
{
|
||||
padding-left: 72px; /* 60 px (padding-left) + 12 px (the position of small blue box)*/
|
||||
padding-left: 120px; /* 60 px (padding-left) + 12 px (the position of small blue box)*/
|
||||
}
|
||||
</style>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
<p>Test passes if the <strong>right edge</strong> of an irregular polygon is straight and unbroken.</p>
|
||||
|
||||
<div>
|
||||
<img class="blue" src="support/swatch-blue.png" width="60" height="60" alt="Image download support must be enabled"><br><img class="blue" src="support/swatch-blue.png" width="48" height="48" alt="Image download support must be enabled">
|
||||
<img class="blue" src="support/swatch-blue.png" width="100" height="100" alt="Image download support must be enabled"><br><img class="blue" src="support/swatch-blue.png" width="80" height="80" alt="Image download support must be enabled">
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<tbody id="s2">
|
||||
<tr><th><a href="chapter-2.htm">Chapter 2 -
|
||||
Inline Direction and Bidirectionality</a></th>
|
||||
<td>(172 Tests)</td></tr>
|
||||
<td>(173 Tests)</td></tr>
|
||||
</tbody>
|
||||
<tbody id="s3">
|
||||
<tr><th><a href="chapter-3.htm">Chapter 3 -
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head><title>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override</title>
|
||||
<link href="kojiishi@gmail.com" rel="author" title="Koji Ishii">
|
||||
<link href="https://drafts.csswg.org/css2/visuren.html#direction" rel="help">
|
||||
<link href="https://drafts.csswg.org/css-writing-modes-3/#unicode-bidi" rel="help">
|
||||
<meta content="This test asserts the parser and getComputedStyle works correctly for the unicode-bidi: normal, embed, bidi-override." name="assert">
|
||||
<meta content="dom" name="flags">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
</head><body><div data-expected="normal" title="Initial value of unicode-bidi"></div>
|
||||
|
||||
<div data-expected="normal" style="unicode-bidi: embed; unicode-bidi: normal"></div>
|
||||
<div data-expected="embed" style="unicode-bidi: embed"></div>
|
||||
<div data-expected="bidi-override" style="unicode-bidi: bidi-override"></div>
|
||||
|
||||
<div style="unicode-bidi: embed">
|
||||
<div data-expected="normal" title="unicode-bidi should not inherit"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {
|
||||
test(function () {
|
||||
var actual = getComputedStyle(element).unicodeBidi;
|
||||
assert_equals(actual, element.dataset.expected);
|
||||
}, element.title || element.getAttribute("style"));
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
|
@ -12,7 +12,7 @@
|
|||
div#rl-upright
|
||||
{
|
||||
writing-mode: vertical-rl;
|
||||
font: 60px/3 Ahem; /* computes to 60px/180px */
|
||||
font: 100px/3 Ahem; /* computes to 100px/300px */
|
||||
color: blue;
|
||||
text-orientation: upright;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
div#rl-mixed
|
||||
{
|
||||
writing-mode: vertical-rl;
|
||||
font: 60px/3 Ahem; /* computes to 60px/180px */
|
||||
font: 100px/3 Ahem; /* computes to 100px/300px */
|
||||
color: blue;
|
||||
text-orientation: mixed;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
div#rl-sideways
|
||||
{
|
||||
writing-mode: vertical-rl;
|
||||
font: 60px/3 Ahem; /* computes to 60px/180px */
|
||||
font: 100px/3 Ahem; /* computes to 100px/300px */
|
||||
color: blue;
|
||||
text-orientation: sideways;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue