From 4e7f38b255e10211ec0e438036bce18142fe0a0e Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 3 Jan 2022 15:47:20 +0900 Subject: 言語擬似クラス、位置擬似クラス、ユーザー操作擬似クラスを変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/_colon_any-link/index.html | 74 ----------------------------- files/ja/web/css/_colon_any-link/index.md | 74 +++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 74 deletions(-) delete mode 100644 files/ja/web/css/_colon_any-link/index.html create mode 100644 files/ja/web/css/_colon_any-link/index.md (limited to 'files/ja/web/css/_colon_any-link') diff --git a/files/ja/web/css/_colon_any-link/index.html b/files/ja/web/css/_colon_any-link/index.html deleted file mode 100644 index 661d3a66de..0000000000 --- a/files/ja/web/css/_colon_any-link/index.html +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: ':any-link' -slug: 'Web/CSS/:any-link' -tags: - - CSS - - CSS 疑似クラス - - Experimental - - Reference - - Web - - セレクター - - レイアウト -translation_of: 'Web/CSS/:any-link' ---- -
{{CSSRef}}
- -

CSS:any-link 疑似クラスセレクターは、訪問の有無とは独立したソースアンカーとして振る舞う要素を表します。言い換えれば、 href 属性を持つすべての {{HTMLElement("a")}}, {{HTMLElement("area")}}, {{HTMLElement("link")}} の各要素を選択します。つまり、 {{cssxref(":link")}} または {{cssxref(":visited")}} に一致するすべての要素を選択します。

- -
/* :link または :visited に該当するすべての要素を選択 */
-:any-link {
-  color: green;
-}
- -

構文

- -{{csssyntax}} - -

- -

HTML

- -
<a href="https://example.com">External link</a><br>
-<a href="#">Internal target link</a><br>
-<a>Placeholder link (won't get styled)</a>
- -

CSS

- -
a:any-link {
-  border: 1px solid blue;
-  color: orange;
-}
-
-/* WebKit browsers */
-a:-webkit-any-link {
-  border: 1px solid blue;
-  color: orange;
-}
-
- -

結果

- -

{{EmbedLiveSample('Example')}}

- -

仕様書

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

ブラウザーの対応

- -

{{Compat("css.selectors.any-link")}}

diff --git a/files/ja/web/css/_colon_any-link/index.md b/files/ja/web/css/_colon_any-link/index.md new file mode 100644 index 0000000000..661d3a66de --- /dev/null +++ b/files/ja/web/css/_colon_any-link/index.md @@ -0,0 +1,74 @@ +--- +title: ':any-link' +slug: 'Web/CSS/:any-link' +tags: + - CSS + - CSS 疑似クラス + - Experimental + - Reference + - Web + - セレクター + - レイアウト +translation_of: 'Web/CSS/:any-link' +--- +
{{CSSRef}}
+ +

CSS:any-link 疑似クラスセレクターは、訪問の有無とは独立したソースアンカーとして振る舞う要素を表します。言い換えれば、 href 属性を持つすべての {{HTMLElement("a")}}, {{HTMLElement("area")}}, {{HTMLElement("link")}} の各要素を選択します。つまり、 {{cssxref(":link")}} または {{cssxref(":visited")}} に一致するすべての要素を選択します。

+ +
/* :link または :visited に該当するすべての要素を選択 */
+:any-link {
+  color: green;
+}
+ +

構文

+ +{{csssyntax}} + +

+ +

HTML

+ +
<a href="https://example.com">External link</a><br>
+<a href="#">Internal target link</a><br>
+<a>Placeholder link (won't get styled)</a>
+ +

CSS

+ +
a:any-link {
+  border: 1px solid blue;
+  color: orange;
+}
+
+/* WebKit browsers */
+a:-webkit-any-link {
+  border: 1px solid blue;
+  color: orange;
+}
+
+ +

結果

+ +

{{EmbedLiveSample('Example')}}

+ +

仕様書

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

ブラウザーの対応

+ +

{{Compat("css.selectors.any-link")}}

-- cgit v1.2.3-54-g00ecf