mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>CSS Test: sideways-rl Table Row/Rowgroup/Cell Ordering</title>
|
||||
<link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="author" title="Gérard Talbot">
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="author" title="Elika J. Etemad">
|
||||
<link href="reference/table-progression-001-ref.htm" rel="match">
|
||||
<meta content="This test checks that sideways-rl tables order rows/rowgroups right to left and cells top-to-bottom (LTR) or bottom-to-top (RTL) per 'direction'. This test also checks that 'writing-mode' and 'direction' do not apply to table rows and row groups." name="assert">
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#writing-mode" rel="help">
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#direction" rel="help">
|
||||
|
||||
<style>
|
||||
.test {
|
||||
writing-mode: sideways-rl;
|
||||
}
|
||||
[dir=rtl] {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
table {
|
||||
border-spacing: 0;
|
||||
margin: 1em;
|
||||
}
|
||||
td {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
border: solid gray;
|
||||
}
|
||||
|
||||
.navy { background: navy}
|
||||
.blue { background: blue }
|
||||
.aqua { background: aqua }
|
||||
.teal { background: teal }
|
||||
.purp { background: purple }
|
||||
.pink { background: fuchsia }
|
||||
.yllw { background: yellow }
|
||||
.orng { background: orange }
|
||||
|
||||
/* These rules must have no effect. */
|
||||
.test thead,
|
||||
.test tfoot,
|
||||
.test tbody,
|
||||
.test tr,
|
||||
.test td {
|
||||
writing-mode: horizontal-tb; /* For UAs not supporting vertical-rl */
|
||||
writing-mode: sideways-lr;
|
||||
direction: rtl;
|
||||
}
|
||||
.test[dir=rtl] thead,
|
||||
.test[dir=rtl] tfoot,
|
||||
.test[dir=rtl] tbody,
|
||||
.test[dir=rtl] tr,
|
||||
.test[dir=rtl] td {
|
||||
direction: ltr;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head><body><p>Test passes if the following three tables look identical.
|
||||
|
||||
</p><table class="test">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="navy">
|
||||
</td><td class="blue">
|
||||
</td><td colspan="2">
|
||||
</td></tr></thead><tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
</td><td class="aqua">
|
||||
</td><td class="teal">
|
||||
</td></tr></tfoot><tbody>
|
||||
<tr>
|
||||
<td rowspan="3">
|
||||
</td><td colspan="2">
|
||||
</td><td class="purp">
|
||||
</td></tr><tr>
|
||||
<td class="pink">
|
||||
</td><td colspan="2" rowspan="2">
|
||||
</td></tr><tr>
|
||||
<td class="yllw">
|
||||
</td></tr></tbody><tbody>
|
||||
<tr>
|
||||
<td class="orng">
|
||||
</td><td colspan="3">
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table class="test" dir="rtl">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
</td><td class="blue">
|
||||
</td><td class="navy">
|
||||
</td></tr></thead><tfoot>
|
||||
<tr>
|
||||
<td class="teal">
|
||||
</td><td class="aqua">
|
||||
</td><td colspan="2">
|
||||
</td></tr></tfoot><tbody>
|
||||
<tr>
|
||||
<td class="purp">
|
||||
</td><td colspan="2">
|
||||
</td><td rowspan="3">
|
||||
</td></tr><tr>
|
||||
<td colspan="2" rowspan="2">
|
||||
</td><td class="pink">
|
||||
</td></tr><tr>
|
||||
<td class="yllw">
|
||||
</td></tr></tbody><tbody>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
</td><td class="orng">
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table class="reference">
|
||||
<tbody><tr>
|
||||
<td rowspan="2">
|
||||
</td><td class="orng">
|
||||
</td><td colspan="3">
|
||||
</td><td class="navy">
|
||||
</td></tr><tr>
|
||||
<td rowspan="3">
|
||||
</td><td class="yllw">
|
||||
</td><td class="pink">
|
||||
</td><td rowspan="2">
|
||||
</td><td class="blue">
|
||||
</td></tr><tr>
|
||||
<td class="aqua">
|
||||
</td><td colspan="2" rowspan="2">
|
||||
</td><td rowspan="2">
|
||||
</td></tr><tr>
|
||||
<td class="teal">
|
||||
</td><td class="purp">
|
||||
</td></tr></tbody></table>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user