From b45efe302db0d0d0db6780d41f0d07c84b13d270 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 3 Oct 2021 00:15:44 +0900 Subject: Web/CSS/widows の変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/widows/index.md | 117 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 files/ja/web/css/widows/index.md (limited to 'files/ja/web/css/widows/index.md') diff --git a/files/ja/web/css/widows/index.md b/files/ja/web/css/widows/index.md new file mode 100644 index 0000000000..fca97dbb2e --- /dev/null +++ b/files/ja/web/css/widows/index.md @@ -0,0 +1,117 @@ +--- +title: widows +slug: Web/CSS/widows +tags: + - CSS + - CSS プロパティ + - CSS 断片化 + - CSS 段組みレイアウト + - リファレンス +translation_of: Web/CSS/widows +--- +
{{CSSRef}}
+ +

CSSwidows プロパティは、ページ、領域、先頭に表示されるブロックコンテナーの最小行数を設定します。

+ +
/* <integer> 値 */
+widows: 2;
+widows: 3;
+
+/* グローバル値 */
+widows: inherit;
+widows: initial;
+widows: unset;
+
+ +
+

組版において、 widow とは段落の最後の行がページの先頭に単独で現れることです。 (段落は前のページから続きます。)

+
+ +

{{cssinfo}}

+ +

構文

+ +

+ +
+
{{cssxref("<integer>")}}
+
区切りの後の新しい断片の先頭に残すことができる最小行数です。値は正の数である必要があります。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +

HTML

+ +
<div>
+  <p>これは幾らかのテキストを含む最初の段落です。</p>
+  <p>これは最初の段落よりも多くのテキストを含む第二の段落です。これは widow がどの様に動作するのかを示すために用います。</p>
+  <p>これは第三の段落です。これは最初の段落よりも少しだけ長いテキストを含んでいます。</p>
+</div>
+
+ +

CSS

+ +
div {
+  background-color: #8cffa0;
+  columns: 3;
+  widows: 2;
+}
+
+p {
+  background-color: #8ca0ff;
+}
+
+p:first-child {
+  margin-top: 0;
+}
+
+ +

結果

+ +

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

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Fragmentation', '#widows-orphans', 'widows')}}{{Spec2('CSS3 Fragmentation')}}widows をページ、領域、段など、断片の種類によらず適用するように拡張
{{SpecName('CSS3 Multicol', '#filling-columns', 'widows')}}{{Spec2('CSS3 Multicol')}}段組みに関する widows の考慮の勧告
{{SpecName('CSS2.1', 'page.html#break-inside', 'widows')}}{{Spec2('CSS2.1')}}初回定義
+ +

ブラウザーの対応

+ +
+

{{Compat("css.properties.widows")}}

+
+ +

関連情報

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