diff options
Diffstat (limited to 'files/ru/web/api/cssvalue/index.html')
-rw-r--r-- | files/ru/web/api/cssvalue/index.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/files/ru/web/api/cssvalue/index.html b/files/ru/web/api/cssvalue/index.html new file mode 100644 index 0000000000..168f152849 --- /dev/null +++ b/files/ru/web/api/cssvalue/index.html @@ -0,0 +1,74 @@ +--- +title: CSSValue +slug: Web/API/CSSValue +translation_of: Web/API/CSSValue +--- +<div>{{APIRef("DOM")}}</div> + +<p>Интерфейс <code><strong>CSSValue</strong></code> возвращает текущее вычсленное значение CSS-свойства. </p> + +<h2 id="Свойства">Свойства</h2> + +<dl> + <dt>{{domxref("CSSValue.cssText")}}</dt> + <dd>{{domxref("DOMString")}} возвращает текущее значение.</dd> + <dt>{{domxref("CSSValue.cssValueType")}} {{readonlyInline}}</dt> + <dd>An <code>unsigned short</code> representing a code defining the type of the value. Возможные значения: + <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>Значение унаследовано и <code>cssText</code> содержит <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="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('DOM2 Style', 'css.html#CSS-CSSValue', 'CSSValue')}}</td> + <td>{{Spec2('DOM2 Style')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<div> + + +<p>{{Compat("api.CSSValue")}}</p> +</div> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{domxref("CSSPrimitiveValue")}}</li> + <li>{{domxref("CSSValueList")}}</li> +</ul> |