Bug 1801946 [wpt PR 37088] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / testing / web-platform / tests / css / css-writing-modes / form-controls-slr-004.xht
blob7774f4b61796f5a8e9ee89cb6c18df2e0bbe23de
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5  <head>
7   <title>CSS Writing Modes Test: order, orientation and layout of form controls in 'sideways-lr' writing-mode</title>
9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
10   <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" />
12   <meta content="image should" name="flags" />
13   <meta content="This test checks the order, the flow, the orientation and layout of form controls used in Example 4 of section 3.1 when the 'writing-mode' of the whole form element is set to 'sideways-lr'." name="assert" />
15   <style type="text/css"><![CDATA[
16   form
17     {
18       font-size: 18px;
19       writing-mode: sideways-lr;
20     }
22   select
23     {
24       vertical-align: top;
25     }
26   ]]></style>
27  </head>
29  <body>
31   <form action="">
32     <p><label>姓名 <input value="艾俐俐" size="10" /></label></p>
34     <p><label>语言 <select size="1"><option>English</option>
35                          <option>français</option>
36                          <option>فارسی</option>
37                          <option>中文</option>
38                          <option>日本語</option></select></label></p>
39   </form>
41   <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>
43   <p><img src="support/form-controls-slr.png" width="180" height="185" alt="Image download support must be enabled" />
44 <!--
45   Long description of image:
46   Screenshot of vertical layout: the input element is laid lengthwise
47   from bottom to top and its content rendered in a vertical writing mode,
48   matching the label outside it. The drop-down selection control (located on
49   the input element's righthand side) slides out to the side (towards the
50   after edge of the block) rather than downward as it would in horizontal writing mode.
51   The Asian glyphs in the input element and in the drop-down selection
52   control are rotated 90 degrees counter-clockwise.
53 -->
54   </p>
56  </body>
57 </html>