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/_colon_blank/index.html | 78 ++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 files/ja/web/css/_colon_blank/index.html (limited to 'files/ja/web/css/_colon_blank') diff --git a/files/ja/web/css/_colon_blank/index.html b/files/ja/web/css/_colon_blank/index.html new file mode 100644 index 0000000000..31b50869f2 --- /dev/null +++ b/files/ja/web/css/_colon_blank/index.html @@ -0,0 +1,78 @@ +--- +title: ':blank' +slug: 'Web/CSS/:blank' +tags: + - ':blank' + - CSS + - CSS Selectors + - Draft + - Experimental + - NeedsContent + - NeedsExample + - Pseudo-class +translation_of: 'Web/CSS/:blank' +--- +

{{CSSRef}}{{SeeCompatTable}}

+ +
+

注: :blank セレクターは、CSSWG が変更を続けているため、使用するリスクを考慮する必要があります。

+ +

CSSWG issue #1967 を参照してください。

+
+ +

:blankCSS擬似クラスで、空のユーザー入力要素 (例えば {{HTMLElement("input")}} や {{HTMLElement("textarea")}}) に一致します。

+ +

構文

+ +
{{CSSSyntax}}
+ +

+ +

単純な :blank の例

+ +

最終的に対応しているブラウザーでは、 :blank 疑似クラスを使用することで、開発者は、必須ではないが、まだ何も記入されていない入力コントロールを、何らかの方法で強調表示することができるようになります。

+ +

HTML

+ +
<textarea></textarea>
+ +

CSS

+ +
textarea:blank {
+  border: 3px solid red;
+}
+ +

結果

+ +

{{EmbedLiveSample('Simple_blank_example', '100%', 150)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS4 Selectors", "#blank-pseudo", ":blank")}}{{Spec2("CSS4 Selectors")}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("css.selectors.blank")}}

+ +

関連情報

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