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/ident/index.html | 79 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 files/ja/web/css/ident/index.html (limited to 'files/ja/web/css/ident/index.html') diff --git a/files/ja/web/css/ident/index.html b/files/ja/web/css/ident/index.html new file mode 100644 index 0000000000..805dbe3e25 --- /dev/null +++ b/files/ja/web/css/ident/index.html @@ -0,0 +1,79 @@ +--- +title: ident +slug: Web/CSS/ident +translation_of: Web/CSS/ident +--- +

{{CSSRef}}{{Draft}}

+ +

<ident> CSS データ型 は、 {{glossary("identifier")}} として使用される任意の文字列を意味します。

+ +

構文

+ +

<custom-ident> の構文は CSS の識別子 (プロパティ名など)に似ていますが、 大文字と小文字の区別 がある点が違います。 これは次の文字から成る文字の並びです:

+ + + +

大文字と小文字の区別 があるため id1、 Id1、 iD1 そして ID1 は全て異なる識別子である点に注意してください。しかし、文字をエスケープする方法はいくつか存在するため、 toto\? と toto\3F は同じ識別子です。

+ +

+ +

有効な識別子

+ +
nono79      	アルファベットと数字の組み合わせ
+ground-level	アルファベットとダッシュの組み合わせ
+-test       	ダッシュとそれに続く英数字
+--toto      	identifier の様なカスタムプロパティ
+_internal   	アンダースコアとそれに続く英数字
+\22 toto    	Unicode 文字とそれに続く一連の英数字
+bili\.bob   	正しくエスケープされたピリオド
+
+ +

無効な識別子

+ +
34rem   	数字で始まってはいけません
+-12rad  	ダッシュで始まって数字が続いてはいけません
+bili.bob	アルファベット、 _、 - のみをエスケープする必要はありません
+'bilibob'	これは {{CSSxRef("<string>")}} になります
+"bilibob"	これは {{CSSxRef("<string>")}} になります
+
+ +

仕様

+ + + + + + + + + + + + + + + + + + + + + +
仕様ステータスコメント
{{SpecName('CSS4 Values', '#css-identifier', '<ident>')}}{{Spec2('CSS4 Values')}}
{{SpecName('CSS3 Values', '#css-identifier', '<ident>')}}{{Spec2('CSS3 Values')}}
+ +

ブラウザーの互換性

+ +

このデータ型は、他のCSS構文の定義を単純化するために使用される便利な型なので実際の型ではありません。

+ +

関連情報

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