blob: 168f15284919feaed8022ff78b7a515a98d2e6bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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>
|