aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/manifest/orientation/index.html
blob: eae33e0614271ba5d730b322ed00fb6a252752cd (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
---
title: orientation
slug: Web/Manifest/orientation
tags:
  - Manifest
  - Orientation
  - Web
translation_of: Web/Manifest/orientation
---
<div>{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}</div>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Type</th>
   <td><code>String</code></td>
  </tr>
  <tr>
   <th scope="row">Mandatory</th>
   <td>No</td>
  </tr>
  <tr>
   <th scope="row">Example</th>
   <td>
    <pre class="brush: json no-line-numbers">
"orientation": "portrait-primary"</pre>
   </td>
  </tr>
 </tbody>
</table>

<p><code>orientation</code> определяет ориентацию по умолчанию для всех верхних уровней {{Glossary("Browsing context", "контекстов браузера")}} приложения.</p>

<ul>
</ul>

<div class="blockIndicator note">
<p><strong>Note:</strong> <code>orientation</code> и/или его конкретные значения могут не поддерживаться пользовательским агентом в различных режимах отображения, поскольку их поддержка не имеет смысла для конкретного контекста.</p>
</div>

<div class="blockIndicator note">
<p><strong>Note:</strong> Ориентация может быть изменена во время выполнения через {{domxref('Screen/orientation', 'API Ориентации экрана')}}.</p>
</div>

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

<p><code>orientation</code> может иметь одно из следующих значений:</p>

<ul>
 <li><code>any</code></li>
 <li><code>natural</code></li>
 <li><code>landscape</code></li>
 <li><code>landscape-primary</code></li>
 <li><code>landscape-secondary</code></li>
 <li><code>portrait</code></li>
 <li><code>portrait-primary</code></li>
 <li><code>portrait-secondary</code></li>
</ul>

<h2 id="Пример">Пример</h2>

<pre class="brush: json" dir="rtl"><code>​​"orientation": "portrait-primary"</code></pre>

<h2 id="Specifications">Specifications</h2>

<table class="fullwidth-table standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
   <th scope="col">Feedback</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>
    <p>{{SpecName('Manifest', '#orientation-member', 'orientation')}}</p>
   </td>
   <td>
    <p>{{Spec2('Manifest')}}</p>
   </td>
   <td>
    <p>Initial definition.</p>
   </td>
   <td>
    <p><a href="https://github.com/w3c/manifest/issues/">Web App Manifest Working Group drafts</a></p>
   </td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div class="hidden">
<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
</div>

<p>{{Compat("html.manifest.orientation")}}</p>