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/hanging-punctuation/index.html | 124 ++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 files/ja/web/css/hanging-punctuation/index.html (limited to 'files/ja/web/css/hanging-punctuation/index.html') diff --git a/files/ja/web/css/hanging-punctuation/index.html b/files/ja/web/css/hanging-punctuation/index.html new file mode 100644 index 0000000000..2f1600dd2a --- /dev/null +++ b/files/ja/web/css/hanging-punctuation/index.html @@ -0,0 +1,124 @@ +--- +title: hanging-punctuation +slug: Web/CSS/hanging-punctuation +tags: + - CSS + - CSS Property + - CSS Text + - CSS テキスト + - CSS プロパティ + - Experimental + - Reference + - リファレンス +translation_of: Web/CSS/hanging-punctuation +--- +
{{CSSRef}}
+ +

hanging-punctuationCSS のプロパティで、区切り記号をテキストの行頭や行末にぶら下げるべきかどうかを指定します。ぶら下げられる区切り記号は行ボックスの外側に配置されれることがあります。

+ +
/* キーワード値 */
+hanging-punctuation: none;
+hanging-punctuation: first;
+hanging-punctuation: last;
+hanging-punctuation: force-end;
+hanging-punctuation: allow-end;
+
+/* 2 つのキーワード */
+hanging-punctuation: first force-end;
+hanging-punctuation: first allow-end;
+hanging-punctuation: first last;
+hanging-punctuation: last force-end;
+hanging-punctuation: last allow-end;
+
+/* 3 つのキーワード */
+hanging-punctuation: first force-end last;
+hanging-punctuation: first allow-end last;
+
+/* グローバル値 */
+hanging-punctuation: inherit;
+hanging-punctuation: initial;
+hanging-punctuation: unset;
+
+ +

{{CSSInfo}}

+ +

構文

+ +

hanging-punctuation プロパティは 1 つ、2 つ、 3 つの値で指定することができます。

+ + + +

+ +
+
none
+
文字のぶら下げを行いません。
+
first
+
要素の最初の書式設定された行頭にある、開き括弧または引用符をぶら下げます。
+
last
+
要素の最後の書式設定された行末にある、閉じ括弧または引用符をぶら下げます。
+
force-end
+
行末の句読点をぶら下げます。
+
allow-end
+
句読点をぶら下げないと行末が揃わない場合に、句読点をぶら下げます。
+
+ +

形式文法

+ +
{{CSSSyntax}}
+ +

+ +

HTML

+ +
<p>“Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur dignissim nunc mauris, et sollicitudin est scelerisque sed. Praesent laoreet tortor massa, sit amet vulputate nulla pharetra ut.”</p>
+ +

CSS

+ +
p {
+  hanging-punctuation: first last;
+  margin: .5rem;
+}
+ +

結果

+ +

{{EmbedLiveSample("Example")}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS3 Text", "#hanging-punctuation-property", "hanging-punctuation")}}{{Spec2("CSS3 Text")}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("css.properties.hanging-punctuation")}}

-- cgit v1.2.3-54-g00ecf