--- title: CSSSupportsRule slug: Web/API/CSSSupportsRule tags: - API - CSSOM - Interface - Reference translation_of: Web/API/CSSSupportsRule --- <p>{{APIRef("CSSOM")}}</p> <p><strong><code>CSSSupportsRule</code></strong> インターフェイスは、1 個の CSS {{cssxref("@supports")}} <a href="/ja/docs/Web/CSS/At-rule">@-規則</a> を表すオブジェクトを表します。これは、{{domxref("CSSConditionRule")}} インターフェイス、さらに型定数の値が <code>12</code> (<code>CSSRule.SUPPORTS_RULE</code>) の {{domxref("CSSRule")}} インターフェイスと {{domxref("CSSGroupingRule")}} インターフェイスを実装します。</p> <h2 id="Syntax" name="Syntax">構文</h2> <p>構文は、<a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/">WebIDL</a> 形式で記述されます。</p> <pre class="syntaxbox">interface CSSSupportsRule : CSSConditionRule { } </pre> <h2 id="Properties" name="Properties">プロパティ</h2> <p>{{domxref("CSSConditionRule")}}、さらに {{domxref("CSSGroupingRule")}} と {{domxref("CSSRule")}} の両方のインターフェイスを持つため、<code>CSSSupportsRule</code> は、これらのインターフェイスのプロパティも実装します。固有のプロパティはありません。</p> <h2 id="Methods" name="Methods">メソッド</h2> <p>{{domxref("CSSConditionRule")}}、さらに {{domxref("CSSGroupingRule")}} と {{domxref("CSSRule")}} の両方のインターフェイスを持つため、<code>CSSSupportsRule</code> は、これらのインターフェイスのメソッドも実装します。固有のプロパティはありません。</p> <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('CSS3 Conditional', '#the-csssupportsrule-interface', 'CSSSupportsRule') }}</td> <td>{{ Spec2('CSS3 Conditional') }}</td> <td>初期定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの実装状況</h2> <p>{{Compat("api.CSSSupportsRule")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>{{cssxref("@supports")}}</li> </ul>