From 169d9ba6a82b3ba2db23c6780aadc8b7643f2592 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 18 Jan 2022 00:30:05 +0900 Subject: ウェブコンポーネント関連の HTML の記事を変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/html/element/slot/index.html | 125 ------------- files/ja/web/html/element/slot/index.md | 125 +++++++++++++ files/ja/web/html/element/template/index.html | 205 --------------------- files/ja/web/html/element/template/index.md | 205 +++++++++++++++++++++ files/ja/web/html/global_attributes/index.html | 197 -------------------- files/ja/web/html/global_attributes/index.md | 197 ++++++++++++++++++++ .../ja/web/html/global_attributes/slot/index.html | 48 ----- files/ja/web/html/global_attributes/slot/index.md | 48 +++++ 8 files changed, 575 insertions(+), 575 deletions(-) delete mode 100644 files/ja/web/html/element/slot/index.html create mode 100644 files/ja/web/html/element/slot/index.md delete mode 100644 files/ja/web/html/element/template/index.html create mode 100644 files/ja/web/html/element/template/index.md delete mode 100644 files/ja/web/html/global_attributes/index.html create mode 100644 files/ja/web/html/global_attributes/index.md delete mode 100644 files/ja/web/html/global_attributes/slot/index.html create mode 100644 files/ja/web/html/global_attributes/slot/index.md (limited to 'files') diff --git a/files/ja/web/html/element/slot/index.html b/files/ja/web/html/element/slot/index.html deleted file mode 100644 index 868200c5e9..0000000000 --- a/files/ja/web/html/element/slot/index.html +++ /dev/null @@ -1,125 +0,0 @@ ---- -title: -slug: Web/HTML/Element/slot -tags: - - Element - - HTML - - HTML Web Components - - Reference - - Web Components - - shadow dom - - slot -translation_of: Web/HTML/Element/slot ---- -
{{HTMLRef}}
- -

HTML の <slot> 要素ウェブコンポーネント技術の一部 — は、ウェブコンポーネント内で別な DOM ツリーを構築し、いっしょに表示することができる独自のマークアップを入れることができるプレイスホルダーです。

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
コンテンツカテゴリフローコンテンツ, 記述コンテンツ
許可されている内容透過的コンテンツ
イベント{{event("slotchange")}}
タグの省略{{no_tag_omission}}
許可されている親要素Any element that accepts 記述コンテンツ
暗黙の ARIA ロール対応するロールなし
許可されている ARIA ロール許可されている role なし
DOM インターフェイス{{domxref("HTMLSlotElement")}}
- -

属性

- -

この要素にはグローバル属性があります。

- -
-
{{htmlattrdef("name")}}
-
スロットの名前です。
-
名前付きスロットは、 <slot> 要素に name 属性が付きます。
-
- -

- -
<template id="element-details-template">
-  <style>
-    details {font-family: "Open Sans Light", Helvetica, Arial, sans-serif }
-    .name {font-weight: bold; color: #217ac0; font-size: 120% }
-    h4 {
-      margin: 10px 0 -8px 0;
-      background: #217ac0;
-      color: white;
-      padding: 2px 6px;
-      border: 1px solid #cee9f9;
-      border-radius: 4px;
-    }
-    .attributes { margin-left: 22px; font-size: 90% }
-    .attributes p { margin-left: 16px; font-style: italic }
-  </style>
-  <details>
-    <summary>
-      <code class="name">&lt;<slot name="element-name">NEED NAME</slot>&gt;</code>
-      <i class="desc"><slot name="description">NEED DESCRIPTION</slot></i>
-    </summary>
-    <div class="attributes">
-      <h4>Attributes</h4>
-      <slot name="attributes"><p>None</p></slot>
-    </div>
-  </details>
-  <hr>
-</template>
- -
-

メモ: この完全な例は、要素の詳細で実際に動作しています (ライブ実行もご覧ください)。また、テンプレートとスロットの利用にも説明があります。

-
- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('HTML WHATWG','scripting.html#the-slot-element','<slot>')}}{{Spec2('HTML WHATWG')}}
{{SpecName('DOM WHATWG','#shadow-tree-slots','Slots')}}{{Spec2('DOM WHATWG')}}
- -

ブラウザーの互換性

- -

{{Compat("html.elements.slot")}}

diff --git a/files/ja/web/html/element/slot/index.md b/files/ja/web/html/element/slot/index.md new file mode 100644 index 0000000000..868200c5e9 --- /dev/null +++ b/files/ja/web/html/element/slot/index.md @@ -0,0 +1,125 @@ +--- +title: +slug: Web/HTML/Element/slot +tags: + - Element + - HTML + - HTML Web Components + - Reference + - Web Components + - shadow dom + - slot +translation_of: Web/HTML/Element/slot +--- +
{{HTMLRef}}
+ +

HTML の <slot> 要素ウェブコンポーネント技術の一部 — は、ウェブコンポーネント内で別な DOM ツリーを構築し、いっしょに表示することができる独自のマークアップを入れることができるプレイスホルダーです。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
コンテンツカテゴリフローコンテンツ, 記述コンテンツ
許可されている内容透過的コンテンツ
イベント{{event("slotchange")}}
タグの省略{{no_tag_omission}}
許可されている親要素Any element that accepts 記述コンテンツ
暗黙の ARIA ロール対応するロールなし
許可されている ARIA ロール許可されている role なし
DOM インターフェイス{{domxref("HTMLSlotElement")}}
+ +

属性

+ +

この要素にはグローバル属性があります。

+ +
+
{{htmlattrdef("name")}}
+
スロットの名前です。
+
名前付きスロットは、 <slot> 要素に name 属性が付きます。
+
+ +

+ +
<template id="element-details-template">
+  <style>
+    details {font-family: "Open Sans Light", Helvetica, Arial, sans-serif }
+    .name {font-weight: bold; color: #217ac0; font-size: 120% }
+    h4 {
+      margin: 10px 0 -8px 0;
+      background: #217ac0;
+      color: white;
+      padding: 2px 6px;
+      border: 1px solid #cee9f9;
+      border-radius: 4px;
+    }
+    .attributes { margin-left: 22px; font-size: 90% }
+    .attributes p { margin-left: 16px; font-style: italic }
+  </style>
+  <details>
+    <summary>
+      <code class="name">&lt;<slot name="element-name">NEED NAME</slot>&gt;</code>
+      <i class="desc"><slot name="description">NEED DESCRIPTION</slot></i>
+    </summary>
+    <div class="attributes">
+      <h4>Attributes</h4>
+      <slot name="attributes"><p>None</p></slot>
+    </div>
+  </details>
+  <hr>
+</template>
+ +
+

メモ: この完全な例は、要素の詳細で実際に動作しています (ライブ実行もご覧ください)。また、テンプレートとスロットの利用にも説明があります。

+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML WHATWG','scripting.html#the-slot-element','<slot>')}}{{Spec2('HTML WHATWG')}}
{{SpecName('DOM WHATWG','#shadow-tree-slots','Slots')}}{{Spec2('DOM WHATWG')}}
+ +

ブラウザーの互換性

+ +

{{Compat("html.elements.slot")}}

diff --git a/files/ja/web/html/element/template/index.html b/files/ja/web/html/element/template/index.html deleted file mode 100644 index e60b201d97..0000000000 --- a/files/ja/web/html/element/template/index.html +++ /dev/null @@ -1,205 +0,0 @@ ---- -title: '