---
title: CSSValue
slug: Web/API/CSSValue
tags:
  - API
  - CSSOM
  - CSSValue
  - Interface
  - NeedsExample
  - Obsolete
  - Reference
translation_of: Web/API/CSSValue
---
<div>{{APIRef("CSSOM")}}</div>

<p><code><strong>SSValue</strong></code> インターフェイスは、 CSS プロパティの現在の計算値を表します。</p>

<h2 id="プロパティ">プロパティ</h2>

<dl>
 <dt>{{DOMxRef("CSSValue.cssText")}}</dt>
 <dd>現在の値を表す {{DOMxRef("DOMString")}} 。</dd>
 <dt>{{DOMxRef("CSSValue.cssValueType")}}{{ReadOnlyInline}}</dt>
 <dd>値の型を定義するコードを表す <code>unsigned short</code> 。可能な値は次のとおりです:
 <table class="standard-table">
  <tbody>
   <tr>
    <td class="header">定数</td>
    <td class="header">説明</td>
   </tr>
   <tr>
    <td><code>CSS_CUSTOM</code></td>
    <td>The value is a custom value.</td>
   </tr>
   <tr>
    <td><code>CSS_INHERIT</code></td>
    <td>The value is inherited and the <code>cssText</code> contains <code>"inherit"</code>.</td>
   </tr>
   <tr>
    <td><code>CSS_PRIMITIVE_VALUE</code></td>
    <td>The value is a primitive value and an instance of the {{DOMxRef("CSSPrimitiveValue")}} interface can be obtained by using binding-specific casting methods on this instance of the <code>CSSValue</code> interface.</td>
   </tr>
   <tr>
    <td><code>CSS_VALUE_LIST</code></td>
    <td>The value is a <code>CSSValue</code> list and an instance of the {{DOMxRef("CSSValueList")}} interface can be obtained by using binding-specific casting methods on this instance of the <code>CSSValue</code> interface.</td>
   </tr>
  </tbody>
 </table>
 </dd>
</dl>

<h2 id="仕様">仕様</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">仕様</th>
   <th scope="col">ステータス</th>
   <th scope="col">備考</th>
  </tr>
  <tr>
   <td>{{SpecName('DOM2 Style', 'css.html#CSS-CSSValue', 'CSSValue')}}</td>
   <td>{{Spec2('DOM2 Style')}}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2>

<div>


<p>{{Compat("api.CSSValue")}}</p>
</div>

<h2 id="関連項目">関連項目</h2>

<ul>
 <li>{{DOMxRef("CSSPrimitiveValue")}}</li>
 <li>{{DOMxRef("CSSValueList")}}</li>
</ul>