servo/tests/wpt/css-tests/css-writing-modes-3_dev/html/form-controls-vert-rl-004.htm

55 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: order, orientation and layout of form controls in 'vertical-rl' writing-mode</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="bookmark" type="image/png" href="http://www.w3.org/TR/css-writing-modes-3/vertical-form.png" title="Screenshot of vertical layout of form controls and characters">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property">
<meta content="image should" name="flags">
<meta content="This test checks the order, the flow, the orientation and layout of form controls used in Example 4 of section 3.1." name="assert">
<style type="text/css">
form
{
font-size: 1.25em;
height: 13.5em;
margin-left: 0.7em;
writing-mode: vertical-rl;
}
select { vertical-align: top; }
</style>
</head>
<body>
<form action="">
<p><label>姓名&#x3000;<input value="艾俐俐" size="10"></label></p>
<p><label>语言&#x3000;<select size="5"><option>English</option>
<option>français</option>
<option>فارسی</option>
<option>中文</option>
<option>日本語</option></select></label></p>
</form>
<p>Test passes if the characters and form controls of the form above have the <strong>same order</strong>, the <strong>same orientation</strong> and the <strong>same layout</strong> as the ones of the form below:</p>
<p><img src="support/vertical-form.png" width="182" height="266" alt="Image download support must be enabled">
<!--
original source of the image is:
http://www.w3.org/TR/css-writing-modes-3/vertical-form.png
longdesc="Screenshot of vertical layout: the input element is laid lengthwise
from top to botom and its contents rendered in a vertical writing mode,
matching the lbels outside it. The drop-down selection control after it slides
out to the sid (towards the after edge of the block) rather than downward as
it would in hoizontal writing modes."
-->
</p>
</body>
</html>