servo/tests/wpt/css-tests/css-writing-modes-3_dev/html/table-column-order-004.htm

65 lines
No EOL
2.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: 'direction: rtl' - table columns order and vertical-rl</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-01-25 -->
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#direction" title="2.1 Specifying Directionality: the direction property">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes">
<link rel="match" href="reference/block-flow-direction-001-ref.htm">
<meta content="ahem" name="flags">
<meta content="This test checks that colspanned cells in a table with 'direction' set to 'rtl' are handled according to a bottom-to-top column direction." name="assert">
<style type="text/css">
body
{
color: yellow;
font: 20px/1 Ahem;
}
table
{
background-color: blue;
border-spacing: 0em;
border: blue solid 1em;
height: 7em;
direction: rtl;
writing-mode: vertical-rl;
}
td
{
padding-bottom: 0em;
padding-left: 1em;
padding-right: 0em;
padding-top: 0em;
}
td.left-most-cell { padding-left: 0em; }
</style>
</head>
<body>
<table>
<!-- The right-most "S" -->
<tr><td><!-- bottommost column -->AA &nbsp;B &nbsp;C D</td><td>EE F&nbsp; G&nbsp; H&nbsp;</td><td><!-- topmost column -->I &nbsp; J &nbsp; K &nbsp; LLL</td></tr>
<!-- The left-most "S" -->
<tr><td colspan="2"><!-- bottommost column -->MMMM N&nbsp;&nbsp;N O&nbsp;&nbsp;O P&nbsp;&nbsp;P</td><td><!-- topmost column -->Q &nbsp; R &nbsp; S &nbsp; TTT</td></tr>
<!-- The "A" -->
<tr><td><!-- bottommost column -->UU &nbsp;&nbsp; &nbsp;&nbsp; VV</td><td colspan="2"><!-- topmost column -->WWWWW X&nbsp; X&nbsp; Y&nbsp; Y&nbsp; ZZZZZ</td></tr>
<!-- The "P" -->
<tr><td class="left-most-cell"><!-- bottommost column -->&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; aa</td><td class="left-most-cell">&nbsp;b c&nbsp; d&nbsp; ee</td><td class="left-most-cell"><!-- topmost column -->fff g &nbsp; h &nbsp; iii</td></tr>
</table>
</body>
</html>