From 10b2c02e4ec97d28eb82021e837dbd464fdd5941 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Thu, 27 Jan 2022 23:30:06 +0900 Subject: counter-increment を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/counter-increment/index.html | 118 -------------------------- files/ja/web/css/counter-increment/index.md | 118 ++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 118 deletions(-) delete mode 100644 files/ja/web/css/counter-increment/index.html create mode 100644 files/ja/web/css/counter-increment/index.md diff --git a/files/ja/web/css/counter-increment/index.html b/files/ja/web/css/counter-increment/index.html deleted file mode 100644 index f1db06d5f9..0000000000 --- a/files/ja/web/css/counter-increment/index.html +++ /dev/null @@ -1,118 +0,0 @@ ---- -title: counter-increment -slug: Web/CSS/counter-increment -tags: - - CSS - - CSS カウンター - - CSS リスト - - CSS プロパティ - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/counter-increment ---- -{{CSSRef}} - -

[CSS](/ja/docs/Web/CSS) の counter-increment プロパティは、指定された値によって [CSS カウンター](/ja/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters)の値を増加又は減少させるためのプロパティです。

- -{{EmbedInteractiveExample("pages/css/counter-increment.html")}} - - - -
-

注: カウンターの値は CSS の {{cssxref("counter-reset")}} プロパティを使用して任意の値にリセットすることができます。

-
- -

構文

- -
/* "my-counter" を 1 増加 */
-counter-increment: my-counter;
-
-/* "my-counter" を 1 減少 */
-counter-increment: my-counter -1;
-
-/* "counter1" を 1 増加、 "counter2" を 4 減少 */
-counter-increment: counter1 counter2 -4;
-
-/* 増加又は減少させない。より詳細度が低い規則を上書きするために使用 */
-counter-increment: none;
-
-/* グローバル値 */
-counter-increment: inherit;
-counter-increment: initial;
-counter-increment: unset;
-
- -

counter-increment プロパティは、以下の値のうちの一つで指定します。

- - - -

- -
-
{{cssxref("<custom-ident>")}}
-
増加の対象となる、カウンターの名前です。
-
{{cssxref("<integer>")}}
-
カウンタに加える値です。指定されない場合は既定値の 1 になります。
-
none
-
カウンターは増加しません。これは既定値として、またはより詳細な規則によって増加を取り消すために使用することができます。
-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

名前付きカウンターの増加

- -
h1 {
-  counter-increment: chapter section 2 page;
-  /* chapter と page カウンタの値を 1 、
-     section カウンタの値を 2 増加させます。 */
-}
-
- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS3 Lists", "#propdef-counter-increment", "counter-increment")}}{{Spec2("CSS3 Lists")}}変更なし
{{SpecName("CSS2.1", "generate.html#propdef-counter-increment", "counter-increment")}}{{Spec2("CSS2.1")}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.counter-increment")}}

- -

関連情報

- - diff --git a/files/ja/web/css/counter-increment/index.md b/files/ja/web/css/counter-increment/index.md new file mode 100644 index 0000000000..f1db06d5f9 --- /dev/null +++ b/files/ja/web/css/counter-increment/index.md @@ -0,0 +1,118 @@ +--- +title: counter-increment +slug: Web/CSS/counter-increment +tags: + - CSS + - CSS カウンター + - CSS リスト + - CSS プロパティ + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/counter-increment +--- +{{CSSRef}} + +

[CSS](/ja/docs/Web/CSS) の counter-increment プロパティは、指定された値によって [CSS カウンター](/ja/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters)の値を増加又は減少させるためのプロパティです。

+ +{{EmbedInteractiveExample("pages/css/counter-increment.html")}} + + + +
+

注: カウンターの値は CSS の {{cssxref("counter-reset")}} プロパティを使用して任意の値にリセットすることができます。

+
+ +

構文

+ +
/* "my-counter" を 1 増加 */
+counter-increment: my-counter;
+
+/* "my-counter" を 1 減少 */
+counter-increment: my-counter -1;
+
+/* "counter1" を 1 増加、 "counter2" を 4 減少 */
+counter-increment: counter1 counter2 -4;
+
+/* 増加又は減少させない。より詳細度が低い規則を上書きするために使用 */
+counter-increment: none;
+
+/* グローバル値 */
+counter-increment: inherit;
+counter-increment: initial;
+counter-increment: unset;
+
+ +

counter-increment プロパティは、以下の値のうちの一つで指定します。

+ + + +

+ +
+
{{cssxref("<custom-ident>")}}
+
増加の対象となる、カウンターの名前です。
+
{{cssxref("<integer>")}}
+
カウンタに加える値です。指定されない場合は既定値の 1 になります。
+
none
+
カウンターは増加しません。これは既定値として、またはより詳細な規則によって増加を取り消すために使用することができます。
+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

名前付きカウンターの増加

+ +
h1 {
+  counter-increment: chapter section 2 page;
+  /* chapter と page カウンタの値を 1 、
+     section カウンタの値を 2 増加させます。 */
+}
+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS3 Lists", "#propdef-counter-increment", "counter-increment")}}{{Spec2("CSS3 Lists")}}変更なし
{{SpecName("CSS2.1", "generate.html#propdef-counter-increment", "counter-increment")}}{{Spec2("CSS2.1")}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.counter-increment")}}

+ +

関連情報

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