Skip to content

Commit 1071a63

Browse files
committed
Add form control example
1 parent 64dcc91 commit 1071a63

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,34 @@ <h3 id=writing-mode><span class=secno>3.1. </span> Block Flow Direction:
11581158
src=vertical-lr.png width=300></p>
11591159
</div>
11601160

1161+
<div class=example>
1162+
<p>In the following example, some form controls are rendered inside a
1163+
block with &lsquo;<a href="#vertical-rl"><code
1164+
class=css>vertical-rl</code></a>&rsquo; writing mode. The form controls
1165+
are rendered to match the writing mode.
1166+
1167+
<pre>
1168+
<!-- -->&lt;style>
1169+
<!-- --> form { writing-mode: vertical-rl; }
1170+
<!-- -->&lt;/style>
1171+
<!-- -->...
1172+
<!-- -->&lt;form style="writing-mode: tb-lr">
1173+
<!-- -->&lt;p>&lt;label>姓名:&lt;input value="艾俐俐">&lt;/label>
1174+
<!-- -->&lt;p>&lt;label>语文:&lt;select>&lt;option>English
1175+
<!-- --> &lt;option>français
1176+
<!-- --> &lt;option>فارسی
1177+
<!-- --> &lt;option> 中文
1178+
<!-- --> &lt;option>日本语&lt;/select>&lt;/label>
1179+
<!-- -->&lt;/form></pre>
1180+
1181+
<p><img alt="Screenshot of vertical layout: the input element is laid
1182+
lengthwise from top to bottom and its contents rendered in a vertical
1183+
typographic mode, matching the labels outside it. The drop-down selection
1184+
control after it slides out to the side (towards the after edge of the
1185+
block) rather than downward as it would in horizontal writing modes."
1186+
src=vertical-form.png></p>
1187+
</div>
1188+
11611189
<h4 id=svg-writing-mode><span class=secno>3.1.1. </span> SVG1.1 &lsquo;<a
11621190
href="#writing-mode1"><code class=property>writing-mode</code></a>&rsquo;
11631191
Values</h4>

css3-writing-modes/Overview.src.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,34 @@ <h3 id="writing-mode">
798798
and 3 are arranged side by side from left to right"
799799
src="vertical-lr.png" height="191" width="300" ></p>
800800
</div>
801+
802+
<div class="example">
803+
<p>In the following example, some form controls are rendered inside
804+
a block with ''vertical-rl'' writing mode. The form controls are
805+
rendered to match the writing mode.
806+
<pre>
807+
<!-- -->&lt;style>
808+
<!-- --> form { writing-mode: vertical-rl; }
809+
<!-- -->&lt;/style>
810+
<!-- -->...
811+
<!-- -->&lt;form style="writing-mode: tb-lr">
812+
<!-- -->&lt;p>&lt;label>姓名:&lt;input value="艾俐俐">&lt;/label>
813+
<!-- -->&lt;p>&lt;label>语文:&lt;select>&lt;option>English
814+
<!-- --> &lt;option>français
815+
<!-- --> &lt;option>فارسی
816+
<!-- --> &lt;option> 中文
817+
<!-- --> &lt;option>日本语&lt;/select>&lt;/label>
818+
<!-- -->&lt;/form></pre>
819+
820+
<p><img alt="Screenshot of vertical layout: the input element is
821+
laid lengthwise from top to bottom and its contents
822+
rendered in a vertical typographic mode, matching the
823+
labels outside it. The drop-down selection control
824+
after it slides out to the side (towards the after
825+
edge of the block) rather than downward as it would
826+
in horizontal writing modes."
827+
src="vertical-form.png"></p>
828+
</div>
801829

802830
<h4 id="svg-writing-mode">
803831
SVG1.1 'writing-mode' Values</h4>
4.95 KB
Loading

0 commit comments

Comments
 (0)