From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/css/writing-mode/index.html | 166 +++++++++++++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 files/ru/web/css/writing-mode/index.html (limited to 'files/ru/web/css/writing-mode') diff --git a/files/ru/web/css/writing-mode/index.html b/files/ru/web/css/writing-mode/index.html new file mode 100644 index 0000000000..1b828cbce4 --- /dev/null +++ b/files/ru/web/css/writing-mode/index.html @@ -0,0 +1,166 @@ +--- +title: writing-mode +slug: Web/CSS/writing-mode +translation_of: Web/CSS/writing-mode +--- +

{{CSSRef}}{{SeeCompatTable}}

+ +

Summary

+ +

Свойство writing-mode устанавливает горизонтальное или вертикальное положение текста также как и направление блока.

+ +

Свойство определяет направление потока блока, в каком направлении складываются контейнеры уровня блока и направление в котором инлайновый контент находится в родительском блоке. Также свойство writing-mode определяет порядок контента блочного уровня.

+ +

{{cssinfo}}

+ +

Синтаксис

+ +
/* Keyword values */
+writing-mode: horizontal-tb;
+writing-mode: horizontal-bt;
+writing-mode: vertical-rl;
+writing-mode: vertical-lr;
+
+/* Global values */
+writing-mode: inherit;
+writing-mode: initial;
+writing-mode: unset;
+
+ +

Значения

+ +
+
horizontal-tb
+
Content flows horizontally from left to right, vertically from top to bottom. The next horizontal line is positioned below the previous line.
+
horizontal-bt
+
Content flows horizontally from left to right, vertically from bottom to top. The next horizontal line is positioned above the previous line.
+
vertical-rl
+
Content flows vertically from top to bottom, horizontally from right to left. The next vertical line is positioned to the left of the previous line.
+
vertical-lr
+
Content flows vertically from top to bottom, horizontally from left to right. The next vertical line is positioned to the right of the previous line.
+
lr {{deprecated_inline}}
+
Deprecated except for SVG1 documents. For CSS, use horizontal-tb.
+
lr-tb {{deprecated_inline}}
+
Deprecated except for SVG1 documents. For CSS, use horizontal-tb.
+
rl {{deprecated_inline}}
+
Deprecated except for SVG1 documents. For CSS, use horizontal-tb.
+
tb {{deprecated_inline}}
+
Deprecated except for SVG1 documents. For CSS, use vertical-rl.
+
tb-rl {{deprecated_inline}}
+
Deprecated except for SVG1 documents. For CSS, use vertical-rl.
+
+ +

Formal syntax

+ +
{{csssyntax}}
+ +

Пример

+ +
<p class="exampleText">Example text</p>
+
+ +
.exampleText {
+  writing-mode: vertical-rl;
+}
+ +

{{EmbedLiveSample("Example", 100, 160)}}

+ +

Specification

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("CSS3 Writing Modes", "#block-flow", "writing-mode")}}{{Spec2("CSS3 Writing Modes")}}Initial definition
+ +

Browser compatibility

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}} {{property_prefix("-webkit")}}{{CompatGeckoDesktop(41)}}[1]9.0 {{property_prefix("-ms")}}[2]{{CompatVersionUnknown}} {{property_prefix("-webkit")}}8.0 {{property_prefix("-webkit")}}
SVG 1.1 values lr, lr-tb, rl, tb, tb-rl{{CompatVersionUnknown}}{{CompatNo}}9.0 {{property_prefix("-ms")}}[2]{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile(41)}} [1]{{CompatUnknown}}{{CompatUnknown}}8.0 {{property_prefix("-webkit")}}
SVG 1.1 values lr, lr-tb, rl, tb, tb-rl{{CompatUnknown}}{{CompatUnknown}}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

[1] An experimental implementation was available since Gecko 36. It is governed by the preference layout.css.vertical-text.enabled, defaulting to false until Firefox 38. From Firefox 39 and Firefox 40, the preference was true for Nightly and DevTools editions only. Note that not all CSS widgets (e.g. tables) obey to it, yet.

+ +

[2] The implementation in Internet Explorer differs from the specification. See the related article in the Internet Explorer Dev Center.

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf