aboutsummaryrefslogtreecommitdiff
path: root/files/uk/web/css/-moz-orient/index.html
blob: 851b26e69b08b162c6778850a20336ecc153ad09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
title: '-moz-orient'
slug: Web/CSS/-moz-orient
translation_of: Web/CSS/-moz-orient
---
<div>{{CSSRef}}{{Non-standard_header}}</div>

<p><code>-moz-orient</code> <a href="/en-US/docs/Web/CSS">CSS</a> властивість, що задає орієнтацію обраного елемента.</p>

<p>{{cssinfo}}</p>

<h2 id="Синтаксис">Синтаксис</h2>

{{csssyntax}}

<h3 id="Значення">Значення</h3>

<dl>
 <dt><code>inline</code></dt>
 <dd>The element is rendered in the same direction as the axis of the text: horizontally for horizontal writing modes, vertically for vertical writing modes.</dd>
 <dt><code>block</code></dt>
 <dd>The element is rendered orthogonally to the axis of the text: vertically for horizontal writing modes, horizontal for vertical writing modes.</dd>
 <dt><code>horizontal</code></dt>
 <dd>The element is rendered horizontally.</dd>
 <dt><code>vertical</code></dt>
 <dd>The element is rendered vertically.</dd>
</dl>

<h2 id="Приклади">Приклади</h2>

<h3 id="HTML">HTML</h3>

<pre class="brush: html">&lt;p&gt;
  The following progress meter
  is horizontal (the default):
&lt;/p&gt;
&lt;progress max="100" value="75"&gt;&lt;/progress&gt;

&lt;p&gt;
 The following progress meter
 is vertical:
&lt;/p&gt;
&lt;progress class="vert" max="100" value="75"&gt;&lt;/progress&gt;</pre>

<h3 id="CSS">CSS</h3>

<pre class="brush: css">.vert {
  -moz-orient: vertical;
  width: 16px;
  height: 150px;
}</pre>

<h3 id="Результат">Результат</h3>

<p>{{EmbedLiveSample("Examples","200","360")}}</p>

<h2 id="Специфікації">Специфікації</h2>

<p>Though <a href="https://lists.w3.org/Archives/Public/www-style/2014Jun/0396.html">submitted</a> to the W3C, with positive initial feedback, this property is not yet part of any specification; currently, this is a Mozilla-specific extension (that is, <code>-moz-orient</code>).</p>

<h2 id="Браузерна_сумісність">Браузерна сумісність</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop("6.0")}}{{property_prefix("-moz")}}<sup>[1]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>auto</code> value</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop("21.0")}}<sup>[2]</sup><br>
    {{CompatNo}}{{CompatGeckoDesktop(40)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>inline</code> and <code>block</code> values</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop(40)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoMobile("6.0")}}{{property_prefix("-moz")}}<sup>[1]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>auto</code> value</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoMobile("21.0")}}<sup>[2]</sup><br>
    {{CompatNo}}{{CompatGeckoDesktop(40)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
  <tr>
   <td><code>inline</code> and <code>block</code> values</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoMobile(40)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] In Gecko 6.0 {{geckoRelease("6.0")}}, there was a bug that causes vertical {{HTMLElement("progress")}} elements to render with the dimensions of a horizontal bar. This is fixed in Gecko 7.0 {{geckoRelease("7.0")}}.</p>

<p>[2] The <code>auto</code> value was equivalent to <code>horizontal</code>.</p>

<h2 id="Дивитися_також">Дивитися також</h2>

<ul>
 <li>{{cssxref("box-orient")}}</li>
</ul>