Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Writing Modes Test: form controls in 'sideways-rl' writing-mode</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />
<meta content="should" name="flags" />
<meta content="This test checks the rendering of various form controls (select, optgroup, options, various types of input and buttons) written with latin text in 'sideways-rl' writing mode. The text of replaced content should match the replaced element's writing mode and line orientation; therefore, in this test, a) the text's inline base direction must be from top to bottom, b) the glyphs must be rotated 90° clockwise and c) the block flow direction must be from right to left." name="assert" />
<style type="text/css"><![CDATA[
form
{
font-size: 1.25em;
writing-mode: sideways-rl;
}
]]></style>
</head>
<body>
<p>Test passes if a) the form controls are appearing with Text sample1 on the right of the page and with Text sample10 on the left and if b) each of the 10 "Text sample" in the form controls are <strong>rotated 90° clockwise</strong>.</p>
<form action="">
<p><input value="Text sample1" size="12" /></p>
<p>
<select size="3">
<optgroup label="Text sample2">
<option>Text sample3</option>
<option>Text sample4</option>
</optgroup>
</select>
</p>
<p><textarea cols="12" rows="2">Text sample5</textarea></p>
<p><input type="button" value="Text sample6" /></p>
<p><input type="submit" value="Text sample7" /></p>
<p><input type="reset" value="Text sample8" /></p>
<p><button type="button">Text sample9</button></p>
<p><button type="submit">Text sample10</button></p>
</form>
</body>
</html>