aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/ja/_redirects.txt7
-rw-r--r--files/ja/_wikihistory.json34
-rw-r--r--files/ja/orphaned/web/api/elementcssinlinestyle/index.html55
-rw-r--r--files/ja/orphaned/web/api/elementcssinlinestyle/style/index.html101
-rw-r--r--files/ja/web/api/htmlelement/index.html88
-rw-r--r--files/ja/web/api/htmlelement/style/index.html95
6 files changed, 136 insertions, 244 deletions
diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt
index 93b6623fbc..3ba3652521 100644
--- a/files/ja/_redirects.txt
+++ b/files/ja/_redirects.txt
@@ -1466,7 +1466,7 @@
/ja/docs/DOM/element.setAttributeNS /ja/docs/Web/API/Element/setAttributeNS
/ja/docs/DOM/element.setAttributeNode /ja/docs/Web/API/Element/setAttributeNode
/ja/docs/DOM/element.setAttributeNodeNS /ja/docs/Web/API/Element/setAttributeNodeNS
-/ja/docs/DOM/element.style /ja/docs/orphaned/Web/API/ElementCSSInlineStyle/style
+/ja/docs/DOM/element.style /ja/docs/Web/API/HTMLElement/style
/ja/docs/DOM/element.tabIndex /ja/docs/orphaned/Web/API/HTMLOrForeignElement/tabIndex
/ja/docs/DOM/element.tagName /ja/docs/Web/API/Element/tagName
/ja/docs/DOM/element.title /ja/docs/Web/API/HTMLElement/title
@@ -1748,7 +1748,7 @@
/ja/docs/DOM:element.setAttributeNS /ja/docs/Web/API/Element/setAttributeNS
/ja/docs/DOM:element.setAttributeNode /ja/docs/Web/API/Element/setAttributeNode
/ja/docs/DOM:element.setAttributeNodeNS /ja/docs/Web/API/Element/setAttributeNodeNS
-/ja/docs/DOM:element.style /ja/docs/orphaned/Web/API/ElementCSSInlineStyle/style
+/ja/docs/DOM:element.style /ja/docs/Web/API/HTMLElement/style
/ja/docs/DOM:element.tagName /ja/docs/Web/API/Element/tagName
/ja/docs/DOM:event /ja/docs/Web/API/Event
/ja/docs/DOM:event.altKey /ja/docs/Web/API/MouseEvent/altKey
@@ -3548,8 +3548,6 @@
/ja/docs/Web/API/Element/accessKey /ja/docs/Web/API/HTMLElement/accessKey
/ja/docs/Web/API/Element/currentStyle /ja/docs/orphaned/Web/API/Element/currentStyle
/ja/docs/Web/API/Element/name /ja/docs/conflicting/Web/API
-/ja/docs/Web/API/ElementCSSInlineStyle /ja/docs/orphaned/Web/API/ElementCSSInlineStyle
-/ja/docs/Web/API/ElementCSSInlineStyle/style /ja/docs/orphaned/Web/API/ElementCSSInlineStyle/style
/ja/docs/Web/API/Event/button /ja/docs/conflicting/Web/API/MouseEvent/button
/ja/docs/Web/API/Event/createEvent /ja/docs/Web/API/Document/createEvent
/ja/docs/Web/API/EventHandler /ja/docs/orphaned/Web/Guide/Events/Event_handlers
@@ -3577,7 +3575,6 @@
/ja/docs/Web/API/HTMLElement/focus /ja/docs/orphaned/Web/API/HTMLOrForeignElement/focus
/ja/docs/Web/API/HTMLElement/forceSpellCheck /ja/docs/orphaned/Web/API/HTMLElement/forceSpellCheck
/ja/docs/Web/API/HTMLElement/nonce /ja/docs/orphaned/Web/API/HTMLOrForeignElement/nonce
-/ja/docs/Web/API/HTMLElement/style /ja/docs/orphaned/Web/API/ElementCSSInlineStyle/style
/ja/docs/Web/API/HTMLElement/tabIndex /ja/docs/orphaned/Web/API/HTMLOrForeignElement/tabIndex
/ja/docs/Web/API/HTMLFormElement.acceptCharset /ja/docs/Web/API/HTMLFormElement/acceptCharset
/ja/docs/Web/API/HTMLFormElement.action /ja/docs/Web/API/HTMLFormElement/action
diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json
index cfc4ff29b8..3505410f53 100644
--- a/files/ja/_wikihistory.json
+++ b/files/ja/_wikihistory.json
@@ -16319,6 +16319,20 @@
"Wind1808"
]
},
+ "Web/API/HTMLElement/style": {
+ "modified": "2020-10-15T21:16:29.287Z",
+ "contributors": [
+ "mfuji09",
+ "mikimhk",
+ "Uemmra3",
+ "momdo",
+ "fscholz",
+ "jsx",
+ "Shoot",
+ "Marsf",
+ "Okome"
+ ]
+ },
"Web/API/HTMLElement/title": {
"modified": "2020-10-15T21:19:51.638Z",
"contributors": [
@@ -51148,26 +51162,6 @@
"mikamikuh"
]
},
- "orphaned/Web/API/ElementCSSInlineStyle": {
- "modified": "2020-10-15T22:32:46.972Z",
- "contributors": [
- "mfuji09"
- ]
- },
- "orphaned/Web/API/ElementCSSInlineStyle/style": {
- "modified": "2020-10-15T21:16:29.287Z",
- "contributors": [
- "mfuji09",
- "mikimhk",
- "Uemmra3",
- "momdo",
- "fscholz",
- "jsx",
- "Shoot",
- "Marsf",
- "Okome"
- ]
- },
"orphaned/Web/API/HTMLElement/forceSpellCheck": {
"modified": "2020-10-15T22:22:28.662Z",
"contributors": [
diff --git a/files/ja/orphaned/web/api/elementcssinlinestyle/index.html b/files/ja/orphaned/web/api/elementcssinlinestyle/index.html
deleted file mode 100644
index 98acea3dc5..0000000000
--- a/files/ja/orphaned/web/api/elementcssinlinestyle/index.html
+++ /dev/null
@@ -1,55 +0,0 @@
----
-title: ElementCSSInlineStyle
-slug: orphaned/Web/API/ElementCSSInlineStyle
-tags:
- - API
- - CSS
- - ElementCSSInlineStyle
- - Interface
- - Mixin
- - Reference
- - ミックスイン
-translation_of: Web/API/ElementCSSInlineStyle
-original_slug: Web/API/ElementCSSInlineStyle
----
-<p>{{APIRef("CSSOM")}}{{Draft}}</p>
-
-<p><span class="seoSummary"><strong><code>ElementCSSInlineStyle</code></strong> ミックスインは、 {{DOMxRef("HTMLElement")}}, {{DOMxRef("SVGElement")}}, {{DOMxRef("MathMLElement")}} インターフェイスで共通の CSSOM に特化した機能を記述します。</span>これらのインターフェイスは、もちろん、以下に上げたものに加えて機能を追加することができます。</p>
-
-<div class="blockIndicator note">
-<p><strong>注</strong>: <code>ElementCSSInlineStyle</code> はミックスインであり、インターフェイスではありません。実際に <code>ElementCSSInlineStyle</code> 型のオブジェクトを生成することはできません。</p>
-</div>
-
-<div>{{InterfaceOverview("CSSOM")}}</div>
-
-<h2 id="Specifications" name="Specifications">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("CSSOM", "#the-elementcssinlinestyle-mixin", '<code>HTMLOrForeignElement</code>')}}</td>
- <td>{{Spec2("CSSOM")}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("api.ElementCSSInlineStyle")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
-
-<ul>
- <li>{{DOMxRef("HTMLElement")}}</li>
- <li>{{DOMxRef("SVGElement")}}</li>
- <li>{{DOMxRef("MathMLElement")}}</li>
- <li>{{DOMxRef("HTMLOrForeignElement")}}</li>
-</ul>
diff --git a/files/ja/orphaned/web/api/elementcssinlinestyle/style/index.html b/files/ja/orphaned/web/api/elementcssinlinestyle/style/index.html
deleted file mode 100644
index 14df7bb6af..0000000000
--- a/files/ja/orphaned/web/api/elementcssinlinestyle/style/index.html
+++ /dev/null
@@ -1,101 +0,0 @@
----
-title: ElementCSSInlineStyle.style
-slug: orphaned/Web/API/ElementCSSInlineStyle/style
-tags:
- - API
- - CSSOM
- - HTMLElement
- - Property
- - Reference
- - SVGElement
- - Style
-translation_of: Web/API/ElementCSSInlineStyle/style
-original_slug: Web/API/ElementCSSInlineStyle/style
----
-<div>{{APIRef("CSSOM")}}</div>
-
-<p><code><strong>style</strong></code>プロパティは、要素の<em>インライン</em>スタイルと同様に設定したり取得したりするために使用します。取得時は {{domxref("CSSStyleDeclaration")}} オブジェクトで、その要素のインラインの <a href="/ja/docs/Web/HTML/Global_attributes/style"><code>style</code> 属性</a>で定義された属性に割り当てられた値を持つ、その要素のすべてのスタイルプロパティのリストを返します。</p>
-
-<p><code>style</code> 経由でアクセス可能な CSS プロパティのリストについては、<a href="/ja/docs/Web/CSS/CSS_Properties_Reference">CSS プロパティリファレンス</a>を参照してください。<code>style</code> プロパティは CSS カスケードで <code>style</code> 属性によるインラインスタイル宣言と同じ (かつ最高の) 優先順位を持ちます。</p>
-
-<h3 id="Setting_styles" name="Setting_styles">スタイルの設定</h3>
-
-<p>スタイルは <code>style</code> プロパティに (<code>elt.style = "color: blue;"</code> のように) 文字列で直接代入して設定しないでください。これは style 属性が読み取り専用であり、また <code>CSSStyleDeclaration</code> オブジェクトも読み取り専用だからです。代わりに、 <code>style</code>. のプロパティに値を代入してスタイルを設定できます。要素に対して特定のスタイルを他のスタイル値を変えずに追加するため、 <code>style</code> の個々のプロパティを (<code>elt.style.color = '...'</code>のように) 使うことをお勧めします。 <code>elt.style.cssText = '...'</code> や <code>elt.setAttribute('style', '...')</code> では要素のインラインスタイルを、既存のインラインスタイルを上書きすることで設定するからです。なお、 <code>elt.style.&lt;プロパティ&gt;</code> を使ってスタイルを設定する時、プロパティ名はキャメルケースであって、ケバブケースでないので注意してください (つまり <code>elt.style.fontSize</code>となり、 <code>elt.style.font-size</code>ではありません)。</p>
-
-<p>スタイル宣言は <code>null</code> または空文字を設定することでリセットします。例えば <code>elt.style.color = null</code> のようにします。 Internet Explorer は空文字列を設定する必要があり、 <code>null</code> に設定しても何も起こりません。</p>
-
-<h2 id="Examples" name="Examples">例</h2>
-
-<pre class="brush:js notranslate">// Set multiple styles in a single statement
-elt.style.cssText = "color: blue; border: 1px solid black";
-// Or
-elt.setAttribute("style", "color:red; border: 1px solid blue;");
-
-// Set specific style while leaving other inline style values untouched
-elt.style.color = "blue";
-</pre>
-
-<h3 id="Getting_style_information" name="Getting_style_information">スタイル情報の取得</h3>
-
-<p><code>style</code> プロパティは、要素に適用されているスタイルを完全に知るためには有用ではありません。これは、要素のインラインの <code>style</code> 属性に設定されている CSS 宣言のみを表し、 {{HTMLElement("head")}} セクションのスタイル規則や外部のスタイルシートなど、他の場所のスタイル規則に由来するものを表してはいないからです。要素のすべての CSS プロパティの値を取得するには、代わりに {{domxref("Window.getComputedStyle()")}} を使用する必要があります。</p>
-
-<p>次のコードスニペットは、要素の <code>style</code> プロパティで取得する値と、<code>getComputedStyle()</code> で取得するものの違いを実演します。</p>
-
-<pre class="brush: html notranslate">&lt;!DOCTYPE HTML&gt;
-&lt;html&gt;
- &lt;body style="font-weight:bold;"&gt;
- &lt;div style="color:red" id="myElement"&gt;..&lt;/div&gt;
- &lt;/body&gt;
-&lt;/html&gt;
-</pre>
-
-<pre class="brush:js notranslate">var element = document.getElementById("myElement");
-var out = "";
-var elementStyle = element.style;
-var computedStyle = window.getComputedStyle(element, null);
-
-for (prop in elementStyle) {
- if (elementStyle.hasOwnProperty(prop)) {
- out += " " + prop + " = '" + elementStyle[prop] + "' &gt; '" + computedStyle[prop] + "'\n";
- }
-}
-console.log(out)
-</pre>
-
-<p>出力されるコードは次のようなものです。</p>
-
-<pre class="notranslate">...
-fontWeight = '' &gt; 'bold'
-color = 'red' &gt; 'rgb(255, 0, 0)'
-...</pre>
-
-<p><code>font-weight</code> のスタイルの計算値に <code>bold</code> の値がありますが、要素の <code>style</code> プロパティにはないことに注意してください。</p>
-
-<h2 id="Specification" name="Specification">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSSOM', '#dom-elementcssinlinestyle-style', 'the <code>ElementCSSInlineStyle.style</code> property')}}</td>
- <td>{{Spec2('CSSOM')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("api.HTMLElement.style")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
-
-<ul>
- <li><a href="/ja/docs/Web/API/CSS_Object_Model/Using_dynamic_styling_information">動的なスタイル情報の利用</a></li>
-</ul>
diff --git a/files/ja/web/api/htmlelement/index.html b/files/ja/web/api/htmlelement/index.html
index 6e26a2465b..56d80d8407 100644
--- a/files/ja/web/api/htmlelement/index.html
+++ b/files/ja/web/api/htmlelement/index.html
@@ -16,22 +16,24 @@ translation_of: Web/API/HTMLElement
<p>{{InheritanceDiagram}}</p>
-<h2 id="プロパティ">プロパティ</h2>
+<h2 id="Properties">プロパティ</h2>
-<p><em>親である {{DOMxRef("Element")}} からプロパティを継承しており、{{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("ElementCSSInlineStyle")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("HTMLOrForeignElement")}}, {{DOMxRef("TouchEventHandlers")}} からのプロパティを実装しています。</em></p>
+<p><em>親である {{DOMxRef("Element")}} からプロパティを継承しており、{{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("TouchEventHandlers")}} からプロパティを実装しています。</em></p>
<dl>
<dt>{{DOMxRef("HTMLElement.accessKey")}}</dt>
<dd>要素に割り当てられたアクセスキーを表す {{DOMxRef("DOMString")}} です。</dd>
<dt>{{DOMxRef("HTMLElement.accessKeyLabel")}} {{ReadOnlyInline}}</dt>
<dd>要素に割り当てられたアクセスキーを含む {{DOMxRef("DOMString")}} を返します。</dd>
+ <dt>{{DOMxRef("HTMLElement.attributeStyleMap")}} {{ReadOnlyInline}}</dt>
+ <dd>{{DOMxRef("StylePropertyMap")}} で、その要素の {{htmlattrxref("style")}} 属性の宣言を表します。</dd>
<dt>{{DOMxRef("HTMLElement.contentEditable")}}</dt>
<dd>{{DOMxRef("DOMString")}}。この文字列が <code>true</code> の場合は要素が編集可能、<code>false</code> の場合は編集不可です。</dd>
<dt>{{DOMxRef("HTMLElement.isContentEditable")}} {{ReadOnlyInline}}</dt>
<dd>要素のコンテンツが編集可能か否かを示す {{DOMxRef("Boolean")}} を返します。</dd>
<dt>{{DOMxRef("HTMLElement.contextMenu")}} {{Deprecated_Inline}}</dt>
<dd>要素に割り当てたコンテキストメニューを表す {{DOMxRef("HTMLMenuElement")}} です。<code>null</code> になる可能性があります。</dd>
- <dt>{{DOMxRef("HTMLOrForeignElement.dataset")}} {{ReadOnlyInline}}</dt>
+ <dt>{{DOMxRef("HTMLElement.dataset")}} {{ReadOnlyInline}}</dt>
<dd>要素の <a href="docs/Web/Guide/HTML/Using_data_attributes">カスタムデータ属性</a> (<code>data-*</code>) を読み書きできるスクリプトの {{DOMxRef("DOMStringMap")}} を返します。</dd>
<dt>{{DOMxRef("HTMLElement.dir")}}</dt>
<dd>要素の記述方向を表す <code>dir</code> グローバル属性を反映する {{DOMxRef("DOMString")}} です。可能な値は、<code>"ltr"</code> および <code>"rtl"</code>、<code>"auto"</code> です。</dd>
@@ -61,7 +63,7 @@ translation_of: Web/API/HTMLElement
<dd>要素の属性およびテキスト、要素のコンテンツの言語を表す {{DOMxRef("DOMString")}} です。</dd>
<dt>{{DOMxRef("HTMLElement.noModule")}}</dt>
<dd>{{JSxRef("Boolean")}} であり、モジュールスクリプトに対応しているユーザーエージェントでインポートしたスクリプトが実行されるかどうかを示します。</dd>
- <dt>{{DOMxRef("HTMLOrForeignElement.nonce")}}</dt>
+ <dt>{{DOMxRef("HTMLElement.nonce")}}</dt>
<dd>指定されたフェッチが実行を許可されるかどうかを判断するために Content Security Policy が使用する、一度だけ使用される暗号学的な数値を返します。</dd>
<dt>{{DOMxRef("HTMLElement.offsetHeight")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
<dd>レイアウトに対して相対的な要素の高さを含む <code>double</code> 値を返します。</dd>
@@ -75,11 +77,11 @@ translation_of: Web/API/HTMLElement
<dd>レイアウトに対して相対的な要素の幅を含む <code>double</code> 値を返します。</dd>
<dt>{{DOMxRef("HTMLElement.properties")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
<dd>{{DOMxRef("HTMLPropertiesCollection")}}… を返します。</dd>
- <dt>{{DOMxRef("HTMLElement.spellcheck")}}{{Gecko_MinVersion_Inline("1.9")}}</dt>
- <dd><a href="/docs/HTML/Controlling_spell_checking_in_HTML_forms" title="/Controlling_spell_checking_in_HTML_forms">スペルチェック</a> を制御する {{jsxref("Boolean")}} です。これはすべての HTML 要素上で提供されていますが、すべての要素に効果があるとは限りません。</dd>
+ <dt>{{DOMxRef("HTMLElement.spellcheck")}}</dt>
+ <dd><a href="/ja/docs/Web/HTML/Global_attributes/spellcheck">スペルチェック</a> を制御する {{jsxref("Boolean")}} です。これはすべての HTML 要素上で提供されていますが、すべての要素に効果があるとは限りません。</dd>
<dt>{{DOMxRef("HTMLElement.style")}}</dt>
<dd>要素の style 属性の宣言を表すオブジェクトである {{DOMxRef("CSSStyleDeclaration")}} です。</dd>
- <dt>{{DOMxRef("HTMLOrForeignElement.tabIndex")}}</dt>
+ <dt>{{DOMxRef("HTMLElement.tabIndex")}}</dt>
<dd>タブ順内の要素の位置を表す <code>long</code> 値です。</dd>
<dt>{{DOMxRef("HTMLElement.title")}}</dt>
<dd>マウスポインターが要素上に置かれた時に現れるポップアップボックスのテキストを含む {{DOMxRef("DOMString")}} です。</dd>
@@ -87,7 +89,7 @@ translation_of: Web/API/HTMLElement
<dd>translation を表す {{jsxref("Boolean")}} です。</dd>
</dl>
-<h3 id="Event_handlers" name="Event_handlers">イベントハンドラー</h3>
+<h3 id="Event_handlers">イベントハンドラー</h3>
<p>ほとんどのイベントハンドラープロパティは、<code>onXYZ</code> の形であり、{{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("TouchEventHandlers")}} の何れかのインターフェイスで定義されていて、<code>HTMLElement</code> により実装されています。さらに <code>HTMLElement</code> 固有のイベントプロパティがいくつかあります。</p>
@@ -112,24 +114,24 @@ translation_of: Web/API/HTMLElement
<dd>{{domxref("Element/touchcancel_event", "touchcancel")}} イベントのイベントハンドリングコードを返します。</dd>
</dl>
-<h2 id="Methods" name="Methods">メソッド</h2>
+<h2 id="Methods">メソッド</h2>
-<p><em>親である {{DOMxRef("Element")}} からメソッドを継承しており、{{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("ElementCSSInlineStyle")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("HTMLOrForeignElement")}}, {{DOMxRef("TouchEventHandlers")}} からのメソッドを実装しています。</em></p>
+<p><em>親である {{DOMxRef("Element")}} からメソッドを継承しており、{{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("TouchEventHandlers")}} からのメソッドを実装しています。</em></p>
<dl>
<dt>{{DOMxRef("HTMLElement.attachInternals()")}} {{Experimental_Inline}}</dt>
<dd>{{DOMxRef("ElementInternals")}} のインスタンスをカスタム要素に割り当てます。</dd>
- <dt>{{DOMxRef("HTMLOrForeignElement.blur()")}}</dt>
+ <dt>{{DOMxRef("HTMLElement.blur()")}}</dt>
<dd>現在フォーカスされている要素からキーボードフォーカスを外します。</dd>
<dt>{{DOMxRef("HTMLElement.click()")}}</dt>
<dd>要素にマウスクリックイベントを送信します。</dd>
- <dt>{{DOMxRef("HTMLOrForeignElement.focus()")}}</dt>
+ <dt>{{DOMxRef("HTMLElement.focus()")}}</dt>
<dd>要素に現在のキーボードフォーカスを当てます。</dd>
<dt>{{DOMxRef("HTMLElement.forceSpellCheck()")}} {{Experimental_Inline}}</dt>
<dd>要素上のコンテンツに対してスペルチェックを実行します。</dd>
</dl>
-<h2 id="Events" name="Events">イベント</h2>
+<h2 id="Events">イベント</h2>
<p>これらのイベントを待ち受けするには <code>addEventListener()</code> を用いるか、イベントリスナーをこのインターフェイスの <code>on<em>イベント名</em></code> プロパティに代入するかしてください。</p>
@@ -139,7 +141,7 @@ translation_of: Web/API/HTMLElement
{{domxref("GlobalEventHandlers/oninvalid", "oninvalid")}} プロパティからも利用できます。</dd>
</dl>
-<h3 id="Animation_events" name="Animation_events">アニメーションイベント</h3>
+<h3 id="Animation_events">アニメーションイベント</h3>
<dl>
<dt>{{domxref("HTMLElement/animationcancel_event", "animationcancel")}}</dt>
@@ -156,7 +158,7 @@ translation_of: Web/API/HTMLElement
{{domxref("GlobalEventHandlers/onanimationstart", "onanimationstart")}} プロパティからも利用できます。</dd>
</dl>
-<h3 id="Input_events" name="Input_events">入力イベント</h3>
+<h3 id="Input_events">入力イベント</h3>
<dl>
<dt>{{domxref("HTMLElement/beforeinput_event", "beforeinput")}}</dt>
@@ -168,14 +170,14 @@ translation_of: Web/API/HTMLElement
<dd>{{HTMLElement("input")}}, {{HTMLElement("select")}}, {{HTMLElement("textarea")}} のいずれかの要素の <code>value</code> が変更され、ユーザーが確定したときに発行されます。{{domxref("HTMLElement/input_event", "input")}} イベントとは異なり、<code>change</code> イベントは要素の <code>value</code> が変更されるたびに発行されるわけではありません。</dd>
</dl>
-<h3 id="Pointer_events" name="Pointer_events">ポインターイベント</h3>
+<h3 id="Pointer_events">ポインターイベント</h3>
<dl>
<dt>{{domxref("HTMLElement/gotpointercapture_event", "gotpointercapture")}}</dt>
<dd>{{domxref("Element/setPointerCapture", "setPointerCapture()")}} を用いて要素がポインターをキャプチャしたときに発行されます。<br>
{{domxref("GlobalEventHandlers/ongotpointercapture", "ongotpointercapture")}} プロパティからも利用できます。</dd>
<dt>{{domxref("HTMLElement/lostpointercapture_event", "lostpointercapture")}}</dt>
- <dd><a href="/ja/docs/Web/API/Pointer_events#Pointer_capture">キャプチャされたポインター</a>が解放されたときに発行されます。<br>
+ <dd><a href="/ja/docs/Web/API/Pointer_events#pointer_capture">キャプチャされたポインター</a>が解放されたときに発行されます。<br>
{{domxref("GlobalEventHandlers/onlostpointercapture", "onlostpointercapture")}} プロパティからも利用できます。</dd>
<dt>{{domxref("HTMLElement/pointercancel_event", "pointercancel")}}</dt>
<dd>ポインターイベントがキャンセルされたときに発行されます。<br>
@@ -203,7 +205,7 @@ translation_of: Web/API/HTMLElement
{{domxref("GlobalEventHandlers/onpointerup", "onpointerup")}} プロパティからも利用できます。</dd>
</dl>
-<h3 id="Transition_events" name="Transition_events">トランジションイベント</h3>
+<h3 id="Transition_events">トランジションイベント</h3>
<dl>
<dt>{{domxref("HTMLElement/transitioncancel_event", "transitioncancel")}}</dt>
@@ -220,55 +222,15 @@ translation_of: Web/API/HTMLElement
{{domxref("GlobalEventHandlers/ontransitionstart", "ontransitionstart")}} プロパティからも利用できます。</dd>
</dl>
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+<h2 id="Specifications">仕様書</h2>
-<p>s</p>
+{{Specifications}}
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSSOM View', '#extensions-to-the-htmlelement-interface', 'HTMLElement')}}</td>
- <td>{{Spec2('CSSOM View')}}</td>
- <td>次のプロパティを追加: <code>offsetParent</code>, <code>offsetTop</code>, <code>offsetLeft</code>, <code>offsetWidth</code>, <code>offsetHeight</code>。</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'elements.html#htmlelement', 'HTMLElement')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>次のプロパティを追加: <code>translate</code>, <code>itemScope</code>, <code>itemType</code>, <code>itemId</code>, <code>itemRef</code>, <code>itemProp</code>, <code>properties</code>, <code>itemValue</code>。<br>
- 次のメソッドを追加: <code>forceSpellcheck()</code>。<br>
- <code>onXYZ</code> 属性を {{DOMxRef("GlobalEventHandlers")}} インターフェイスへ移動し、そこから継承したプロパティを追加。</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'dom.html#htmlelement', 'HTMLElement')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td>次のプロパティを追加: <code>dataset</code>, <code>hidden</code>, <code>tabindex</code>, <code>accessKey</code>, <code>accessKeyLabel</code>, <code>draggable</code>, <code>dropzone</code>, <code>contentEditable</code>, <code>isContentEditable</code>, <code>contextMenu</code>, <code>spellcheck</code>, <code>commandType</code>, <code>commandLabel</code>, <code>commandIcon</code>, <code>commandHidden</code>, <code>commandDisabled</code>, <code>commandChecked</code>, <code>style</code>, およびすべての <code>onXYZ</code> プロパティ。<br>
- <code>id</code> と <code>className</code> プロパティを {{DOMxRef("Element")}} インターフェイスへ移動。</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM2 HTML', 'html.html#ID-011100101', 'HTMLElement')}}</td>
- <td>{{Spec2('DOM2 HTML')}}</td>
- <td>{{SpecName('DOM2 HTML')}} からの変更なし。</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM1', 'level-one-html.html#ID-011100101', 'HTMLElement')}}</td>
- <td>{{Spec2('DOM1')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+<p>{{Compat}}</p>
-<p>{{Compat("api.HTMLElement")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
+<h2 id="See_also">関連情報</h2>
<ul>
<li>{{DOMxRef("Element")}}</li>
diff --git a/files/ja/web/api/htmlelement/style/index.html b/files/ja/web/api/htmlelement/style/index.html
new file mode 100644
index 0000000000..b2f9bc2ffb
--- /dev/null
+++ b/files/ja/web/api/htmlelement/style/index.html
@@ -0,0 +1,95 @@
+---
+title: HTMLElement.style
+slug: Web/API/HTMLElement/style
+tags:
+ - API
+ - CSSOM
+ - HTMLElement
+ - Property
+ - Reference
+ - Style
+browser-compat: api.HTMLElement.style
+translation_of: Web/API/HTMLElement/style
+---
+<div>{{APIRef("CSSOM")}}</div>
+
+<p><code><strong>style</strong></code>プロパティは、要素の<em>インライン</em>スタイルと同様に設定したり取得したりするために使用します。取得時は {{domxref("CSSStyleDeclaration")}} オブジェクトで、その要素のインラインの <a href="/ja/docs/Web/HTML/Global_attributes/style"><code>style</code> 属性</a>で定義された属性に割り当てられた値を持つ、その要素のすべてのスタイルプロパティのリストを返します。</p>
+
+<div class="notecard note">
+<p><code>style</code> 経由でアクセス可能な CSS プロパティのリストについては、<a href="/ja/docs/Web/CSS/CSS_Properties_Reference">CSS プロパティリファレンス</a>を参照してください。<code>style</code> プロパティは CSS カスケードで <code>style</code> 属性によるインラインスタイル宣言と同じ (かつ最高の) 優先順位を持ちます。</p>
+</div>
+
+<h2 id="Syntax">構文</h2>
+
+<pre class="brush: js"><var>style</var> = <var>element</var>.style</pre>
+
+<h2 id="value">値</h2>
+
+<p>{{domxref("CSSStyleDeclaration")}} で、次のプロパティを持っています。</p>
+
+<dl>
+ <dt>computed フラグ</dt>
+ <dd>設定されていません。</dd>
+ <dt>parent CSS rule</dt>
+ <dd>Null</dd>
+ <dt>owner node</dt>
+ <dd><code>this</code></dd>
+</dl>
+
+<h2 id="Setting_styles">スタイルの設定</h2>
+
+<p>このプロパティは読み取り専用と考えられていますが、 <code>style</code> に直接文字列を代入することで、インラインスタイルを設定することができます。この場合、その文字列は {{domxref("CSSStyleDeclaration.cssText")}} に転送されます。この方法で <code>style</code> を使用すると、その要素のインラインスタイルをすべて完全に上書きします。</p>
+
+<p>したがって、他のスタイルの値を変更せずに要素の特定のスタイルを追加したい場合は、一般に {{domxref("CSSStyleDeclaration")}} オブジェクトの個別のプロパティを設定したほうがうまく行きます。例えば、 <code>element.style.backgroundColor = "red"</code> のようにします。</p>
+
+<p>スタイル宣言は <code>null</code> または空文字列を設定することでリセットすることができます。例えば <code>elt.style.color = null</code> のようにします。</p>
+
+<h3 id="Getting_style_information">スタイル情報の取得</h3>
+
+<p><code>style</code> プロパティは、要素に適用されているスタイルを完全に知るためには有用ではありません。これは、要素のインラインの <code>style</code> 属性に設定されている CSS 宣言のみを表し、 {{HTMLElement("head")}} セクションのスタイル規則や外部のスタイルシートなど、他の場所のスタイル規則に由来するものを表してはいないからです。要素のすべての CSS プロパティの値を取得するには、代わりに {{domxref("Window.getComputedStyle()")}} を使用する必要があります。</p>
+
+<p>次のコードスニペットは、要素の <code>style</code> プロパティで取得した値と、<code>getComputedStyle()</code> で取得した値の違いを実演します。</p>
+
+<pre class="brush: html">&lt;!DOCTYPE HTML&gt;
+&lt;html&gt;
+ &lt;body style="font-weight:bold;"&gt;
+ &lt;div style="color:red" id="myElement"&gt;..&lt;/div&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+<pre class="brush:js">var element = document.getElementById("myElement");
+var out = "";
+var elementStyle = element.style;
+var computedStyle = window.getComputedStyle(element, null);
+
+for (prop in elementStyle) {
+ if (elementStyle.hasOwnProperty(prop)) {
+ out += " " + prop + " = '" + elementStyle[prop] + "' &gt; '" + computedStyle[prop] + "'\n";
+ }
+}
+console.log(out)
+</pre>
+
+<p>出力されるコードは次のようなものです。</p>
+
+<pre>...
+fontWeight = '' &gt; 'bold'
+color = 'red' &gt; 'rgb(255, 0, 0)'
+...</pre>
+
+<p><code>font-weight</code> のスタイルの計算値に <code>bold</code> の値がありますが、要素の <code>style</code> プロパティにはないことに注意してください。</p>
+
+<h2 id="Specification">仕様書</h2>
+
+{{Specifications}}
+
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat}}</p>
+
+<h2 id="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/API/CSS_Object_Model/Using_dynamic_styling_information">動的なスタイル情報の利用</a></li>
+</ul>