mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>CSS Test: sideways-rl Table Column/Colgroup 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-002-ref.htm" rel="match">
|
||||
<meta content="This test checks that sideways-rl tables order columns top-to-bottom (LTR) or bottom-to-top (RTL) per the table's 'direction'. This test also checks that 'writing-mode' and 'direction' do not apply to table columns and column 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;
|
||||
border: solid gray;
|
||||
margin: 1em;
|
||||
float: left;
|
||||
}
|
||||
td {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
.navy { background: navy}
|
||||
.blue { background: blue }
|
||||
.aqua { background: aqua }
|
||||
.teal { background: teal }
|
||||
|
||||
/* These declarations must have no effect. */
|
||||
.test col,
|
||||
.test colgroup {
|
||||
writing-mode: horizontal-tb;
|
||||
writing-mode: sideways-lr;
|
||||
direction: rtl;
|
||||
}
|
||||
.test[dir=rtl] col,
|
||||
.test[dir=rtl] colgroup {
|
||||
direction: ltr;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head><body><p>Test passes if the following patterned boxes all look identical.
|
||||
|
||||
</p><table class="test">
|
||||
<colgroup><col span="2" class="navy">
|
||||
<col class="blue">
|
||||
<col span="2" class="aqua">
|
||||
</colgroup><tbody><tr><td></td><td></td><td></td><td></td><td>
|
||||
</td></tr></tbody></table>
|
||||
<table class="test">
|
||||
<colgroup span="2" class="navy"></colgroup>
|
||||
<colgroup>
|
||||
<col class="blue">
|
||||
<col span="2" class="aqua">
|
||||
</colgroup>
|
||||
<tbody><tr><td></td><td></td><td></td><td></td><td>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table class="test" dir="rtl">
|
||||
<colgroup><col span="2" class="aqua">
|
||||
<col class="blue">
|
||||
<col span="2" class="navy">
|
||||
</colgroup><tbody><tr><td></td><td></td><td></td><td></td><td>
|
||||
</td></tr></tbody></table>
|
||||
<table class="test" dir="rtl">
|
||||
<colgroup span="2" class="aqua"></colgroup>
|
||||
<colgroup>
|
||||
<col class="blue">
|
||||
<col span="2" class="navy">
|
||||
</colgroup>
|
||||
<tbody><tr><td></td><td></td><td></td><td></td><td>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table class="reference">
|
||||
<tbody><tr><td class="navy">
|
||||
</td></tr><tr><td class="navy">
|
||||
</td></tr><tr><td class="blue">
|
||||
</td></tr><tr><td class="aqua">
|
||||
</td></tr><tr><td class="aqua">
|
||||
</td></tr></tbody></table>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user