From f83ede3686712b4693c3abbd563a5d608e06b4da Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Wed, 26 Jan 2022 22:10:14 +0900 Subject: counter-reset を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/counter-reset/index.html | 106 ------------------------------ files/ja/web/css/counter-reset/index.md | 106 ++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 106 deletions(-) delete mode 100644 files/ja/web/css/counter-reset/index.html create mode 100644 files/ja/web/css/counter-reset/index.md (limited to 'files/ja/web/css') diff --git a/files/ja/web/css/counter-reset/index.html b/files/ja/web/css/counter-reset/index.html deleted file mode 100644 index 2d3aafeb68..0000000000 --- a/files/ja/web/css/counter-reset/index.html +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: counter-reset -slug: Web/CSS/counter-reset -tags: - - CSS - - CSS プロパティ - - CSS リスト - - リファレンス -translation_of: Web/CSS/counter-reset ---- -
{{CSSRef}}
- -CSS の **`counter-reset`** プロパティは、 CSS カウンターを、与えられた値に初期化します。 - -
{{EmbedInteractiveExample("pages/css/counter-reset.html")}}
- - - -
-**メモ:** カウンターの値は CSS の {{cssxref("counter-increment")}} プロパティを使用して増加させたり減少させたりすることができます。 -
- -## 構文 - -
/* "my-counter" を 0 に設定 */
-counter-reset: my-counter;
-
-/* "my-counter" を -1 に設定 */
-counter-reset: my-counter -1;
-
-/* "counter1" を 1 に、 "counter2" を 4 に設定 */
-counter-reset: counter1 1 counter2 4;
-
-/* より詳細度が低い規則による値の初期化をキャンセル */
-counter-reset: none;
-
-/* グローバル値 */
-counter-reset: inherit;
-counter-reset: initial;
-counter-reset: unset;
-
- -`counter-reset` プロパティは、以下のうちの一つで指定します。 - -- カウンターの名前を指定する `<custom-ident>` と、その後に任意で `<integer>`。名前又は名前と数値の組み合わせを空白で区切ることで、初期化させるカウンターを好きなだけ指定することができます。 -- キーワード値 `none`。 - -### 値 - -- {{cssxref("custom-ident", "<custom-ident>")}} - - : 初期化の対象となる、カウンターの名前です。 -- {{cssxref("<integer>")}} - - : 要素が出現するごとに、カウンターを初期化するための値です。与えられない場合、初期値の `0` なります。 -- `none` - - : カウンターの初期化は行われません。これはより詳細度の低い規則によって定義された `counter-reset` を上書きするために使用することができます。 - -## 形式文法 - -{{csssyntax}} - -## 例 - -
h1 {
-  counter-reset: chapter section 1 page;
-  /* chapter と page カウンターを 0 に、
-     section カウンターを 1 に設定します。 */
-}
-
- -## 仕様書 - - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Lists', '#counter-reset', 'counter-reset')}}{{Spec2('CSS3 Lists')}}変更なし
{{SpecName('CSS2.1', 'generate.html#propdef-counter-reset', 'counter-reset')}}{{Spec2('CSS2.1')}}初回定義
- -{{cssinfo}} - -## ブラウザーの互換性 - -
-{{Compat("css.properties.counter-reset")}} -
- -## 関連情報 - -- CSS カウンターの利用 -- {{cssxref("counter-increment")}} -- {{cssxref("@counter-style")}} diff --git a/files/ja/web/css/counter-reset/index.md b/files/ja/web/css/counter-reset/index.md new file mode 100644 index 0000000000..2d3aafeb68 --- /dev/null +++ b/files/ja/web/css/counter-reset/index.md @@ -0,0 +1,106 @@ +--- +title: counter-reset +slug: Web/CSS/counter-reset +tags: + - CSS + - CSS プロパティ + - CSS リスト + - リファレンス +translation_of: Web/CSS/counter-reset +--- +
{{CSSRef}}
+ +CSS の **`counter-reset`** プロパティは、 CSS カウンターを、与えられた値に初期化します。 + +
{{EmbedInteractiveExample("pages/css/counter-reset.html")}}
+ + + +
+**メモ:** カウンターの値は CSS の {{cssxref("counter-increment")}} プロパティを使用して増加させたり減少させたりすることができます。 +
+ +## 構文 + +
/* "my-counter" を 0 に設定 */
+counter-reset: my-counter;
+
+/* "my-counter" を -1 に設定 */
+counter-reset: my-counter -1;
+
+/* "counter1" を 1 に、 "counter2" を 4 に設定 */
+counter-reset: counter1 1 counter2 4;
+
+/* より詳細度が低い規則による値の初期化をキャンセル */
+counter-reset: none;
+
+/* グローバル値 */
+counter-reset: inherit;
+counter-reset: initial;
+counter-reset: unset;
+
+ +`counter-reset` プロパティは、以下のうちの一つで指定します。 + +- カウンターの名前を指定する `<custom-ident>` と、その後に任意で `<integer>`。名前又は名前と数値の組み合わせを空白で区切ることで、初期化させるカウンターを好きなだけ指定することができます。 +- キーワード値 `none`。 + +### 値 + +- {{cssxref("custom-ident", "<custom-ident>")}} + - : 初期化の対象となる、カウンターの名前です。 +- {{cssxref("<integer>")}} + - : 要素が出現するごとに、カウンターを初期化するための値です。与えられない場合、初期値の `0` なります。 +- `none` + - : カウンターの初期化は行われません。これはより詳細度の低い規則によって定義された `counter-reset` を上書きするために使用することができます。 + +## 形式文法 + +{{csssyntax}} + +## 例 + +
h1 {
+  counter-reset: chapter section 1 page;
+  /* chapter と page カウンターを 0 に、
+     section カウンターを 1 に設定します。 */
+}
+
+ +## 仕様書 + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Lists', '#counter-reset', 'counter-reset')}}{{Spec2('CSS3 Lists')}}変更なし
{{SpecName('CSS2.1', 'generate.html#propdef-counter-reset', 'counter-reset')}}{{Spec2('CSS2.1')}}初回定義
+ +{{cssinfo}} + +## ブラウザーの互換性 + +
+{{Compat("css.properties.counter-reset")}} +
+ +## 関連情報 + +- CSS カウンターの利用 +- {{cssxref("counter-increment")}} +- {{cssxref("@counter-style")}} -- cgit v1.2.3-54-g00ecf