CSS

  • Revision slug: Web/API/CSS
  • Revision title: CSS
  • Revision id: 469401
  • Created:
  • Creator: kscarfone
  • Is current revision? No
  • Comment Updated tags

Revision Content

The CSS interface holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface.

Properties

No properties, and no inherited properties.

Methods

No methods, and no inherited methods.

Static methods

No inherited static methods.

{{domxref("CSS.supports")}}
Returns a {{domxref("Boolean")}} indicating if the the pair property-value, or the condition, given in parameter is supported.

Specifications

Specification Status Comment
{{SpecName('CSS3 Conditional', '#the-css-interface', 'CSS')}} {{Spec2('CSS3 Conditional')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 28.0 {{CompatGeckoDesktop("22.0")}} [1] {{CompatNo}} 12.1 {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile("22.0")}} [1] {{CompatNo}} 12.1 {{CompatNo}}

[1] Was available behind the layout.css.supports-rule.enabled preference since Gecko 20.

Revision Source

<p>The <strong><code>CSS</code></strong><strong> </strong>interface holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface.</p>
<h2 id="Properties">Properties</h2>
<p><em>No properties, and no inherited properties.</em></p>
<h2 id="Methods">Methods</h2>
<p><em>No methods, and no inherited methods.</em></p>
<h2 id="Static_methods">Static methods</h2>
<p><em>No inherited static methods</em>.</p>
<dl>
  <dt>
    {{domxref("CSS.supports")}}</dt>
  <dd>
    Returns a {{domxref("Boolean")}} indicating if the the pair <em>property-value</em>, or the condition, given in parameter is supported.</dd>
</dl>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('CSS3 Conditional', '#the-css-interface', 'CSS')}}</td>
      <td>{{Spec2('CSS3 Conditional')}}</td>
      <td>Initial definition.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>28.0</td>
        <td>{{CompatGeckoDesktop("22.0")}} [1]</td>
        <td>{{CompatNo}}</td>
        <td>12.1</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile("22.0")}} [1]</td>
        <td>{{CompatNo}}</td>
        <td>12.1</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<p>[1] Was available behind the <code>layout.css.supports-rule.enabled</code> preference since Gecko 20.</p>
Revert to this revision