From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/text-orientation/index.html | 107 +++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 files/ja/web/css/text-orientation/index.html (limited to 'files/ja/web/css/text-orientation') diff --git a/files/ja/web/css/text-orientation/index.html b/files/ja/web/css/text-orientation/index.html new file mode 100644 index 0000000000..8ac5a69a73 --- /dev/null +++ b/files/ja/web/css/text-orientation/index.html @@ -0,0 +1,107 @@ +--- +title: text-orientation +slug: Web/CSS/text-orientation +tags: + - CSS + - CSS プロパティ + - CSS 書字方向 + - Reference + - 日本語処理 +translation_of: Web/CSS/text-orientation +--- +
{{CSSRef}}
+ +

text-orientationCSS のプロパティで、行内のテキストの向きを設定します。このプロパティは縦書きのテキスト ({{cssxref("writing-mode")}} が horizontal-tb 以外の場合) でのみ効果があります。これは縦書きを使用する言語の表示を制御したり、縦書きの表見出しを作成したりするのに有用です。

+ +
{{EmbedInteractiveExample("pages/css/text-orientation.html")}}
+ + + +

構文

+ +
/* キーワード値 */
+text-orientation: mixed;
+text-orientation: upright;
+text-orientation: sideways-right;
+text-orientation: sideways;
+text-orientation: use-glyph-orientation;
+
+/* グローバル値 */
+text-orientation: inherit;
+text-orientation: initial;
+text-orientation: unset;
+
+ +

text-orientation プロパティは、以下のリストから単一のキーワードとして指定されます。

+ +

+ +
+
mixed
+
このキーワードは、横書きのみの文字を右に 90°回転させ、縦書き文字のグリフは自然にレイアウトされます。
+
upright
+
このキーワードは、横書きのみの文字を、縦書き文字と同様に自然にレイアウト (正立) させます。このキーワードは、すべての文字が ltr (左から右へ) で書かれているものとみなすので注意してください。これは、ユーザ側でどのように設定されていても、対象のテキストの {{cssxref("direction")}} に ltr が指定されているものとします。
+
sideways
+
このキーワードは、全行を横書きで書いて 90°回転したようにレイアウトします。{{cssxref("writing-mode")}} が vertical-rl の場合は右へ回転、vertical-lr の場合は左へ回転します。
+
sideways-right
+
これは、互換性を維持するためのキーワードであり、sideways の別名です。
+
use-glyph-orientation
+
SVG 要素上で、このキーワードは、非推奨の SVG プロパティ glyph-orientation-verticalglyph-orientation-horizontal の値を使用します。
+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

HTML

+ +
<p>Lorem ipsum dolet semper quisquam.</p>
+ +

CSS

+ +
p {
+  writing-mode: vertical-rl;
+  text-orientation: upright;
+}
+ +

結果

+ +

{{EmbedLiveSample('Examples')}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Writing Modes', '#text-orientation', 'text-orientation')}}{{Spec2('CSS3 Writing Modes')}}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの互換性

+ + + +

{{Compat("css.properties.text-orientation")}}

+ +

関連情報

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