From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/cssvalue/csstext/index.html | 61 +++++++++++++++++ files/ja/web/api/cssvalue/cssvaluetype/index.html | 81 ++++++++++++++++++++++ files/ja/web/api/cssvalue/index.html | 82 +++++++++++++++++++++++ 3 files changed, 224 insertions(+) create mode 100644 files/ja/web/api/cssvalue/csstext/index.html create mode 100644 files/ja/web/api/cssvalue/cssvaluetype/index.html create mode 100644 files/ja/web/api/cssvalue/index.html (limited to 'files/ja/web/api/cssvalue') diff --git a/files/ja/web/api/cssvalue/csstext/index.html b/files/ja/web/api/cssvalue/csstext/index.html new file mode 100644 index 0000000000..257c47bb63 --- /dev/null +++ b/files/ja/web/api/cssvalue/csstext/index.html @@ -0,0 +1,61 @@ +--- +title: CSSValue.cssText +slug: Web/API/CSSValue/cssText +tags: + - API + - CSSValue + - Property + - Reference + - cssText +translation_of: Web/API/CSSValue/cssText +--- +
{{APIRef("DOM")}}
+ +

{{domxref("CSSValue")}} インターフェイスの cssText プロパティは、現在計算されている CSS プロパティ値を表します。

+ +

構文

+ +
cssText = cssValue.cssText;
+
+ +

+ +

現在の CSS プロパティ値を表す {{domxref("DOMString")}} 。

+ +

+ +
var styleDeclaration = document.styleSheets[0].cssRules[0].style;
+var cssValue = styleDeclaration.getPropertyCSSValue("color");
+console.log(cssValue.cssText);
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('DOM2 Style', 'css.html#CSS-CSSValue-cssText', 'CSSValue.cssText')}}{{Spec2('DOM2 Style')}}初回定義
+ +

ブラウザー実装状況

+ +
+ + +

{{Compat("api.CSSValue.cssText")}}

+
+ +

関連項目

+ + diff --git a/files/ja/web/api/cssvalue/cssvaluetype/index.html b/files/ja/web/api/cssvalue/cssvaluetype/index.html new file mode 100644 index 0000000000..fcae4ec1b9 --- /dev/null +++ b/files/ja/web/api/cssvalue/cssvaluetype/index.html @@ -0,0 +1,81 @@ +--- +title: CSSValue.cssValueType +slug: Web/API/CSSValue/cssValueType +tags: + - API + - CSSValue + - Property + - Read-only + - Reference + - cssValueType +translation_of: Web/API/CSSValue/cssValueType +--- +
{{APIRef("DOM")}}
+ +

{{domxref("CSSValue")}} インターフェイスの cssValueType 読み取り専用プロパティは、現在計算されている CSS プロパティ値の型を表します。

+ +

構文

+ +
cssValueType = cssValue.cssValueType;
+
+ +

+ +

値の型を定義するコードを表す unsigned short 。可能な値は次のとおりです:

+ + + + + + + + + + + + + + + + + + + + + + + + +
定数説明
CSS_CUSTOM値はカスタム値です。
CSS_INHERIT値は継承され、 cssText には "inherit" が含まれます。
CSS_PRIMITIVE_VALUE値はプリミティブ値であり、 {{domxref("CSSPrimitiveValue")}} インターフェイスのインスタンスは、 CSSValue インターフェイスのこのインスタンスでバインディング固有のキャストメソッドを使用して取得できます。
CSS_VALUE_LIST値は CSSValue リストであり、 {{domxref("CSSValueList")}} インターフェイスのインスタンスは、 CSSValue インターフェイスのこのインスタンスでバインディング固有のキャストメソッドを使用して取得できます。
+ +

+ +
var styleDeclaration = document.styleSheets[0].cssRules[0].style;
+var cssValue = styleDeclaration.getPropertyCSSValue("color");
+console.log(cssValue.cssValueType);
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('DOM2 Style', 'css.html#CSS-CSSValue-cssValueType', 'CSSValue.cssValueType')}}{{Spec2('DOM2 Style')}}初回定義
+ +

ブラウザー実装状況

+ +
+ + +

{{Compat("api.CSSValue.cssValueType")}}

+
diff --git a/files/ja/web/api/cssvalue/index.html b/files/ja/web/api/cssvalue/index.html new file mode 100644 index 0000000000..07d56db6de --- /dev/null +++ b/files/ja/web/api/cssvalue/index.html @@ -0,0 +1,82 @@ +--- +title: CSSValue +slug: Web/API/CSSValue +tags: + - API + - CSSOM + - CSSValue + - Interface + - NeedsExample + - Obsolete + - Reference +translation_of: Web/API/CSSValue +--- +
{{APIRef("CSSOM")}}
+ +

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

+ +

プロパティ

+ +
+
{{DOMxRef("CSSValue.cssText")}}
+
現在の値を表す {{DOMxRef("DOMString")}} 。
+
{{DOMxRef("CSSValue.cssValueType")}}{{ReadOnlyInline}}
+
値の型を定義するコードを表す unsigned short 。可能な値は次のとおりです: + + + + + + + + + + + + + + + + + + + + + + + +
定数説明
CSS_CUSTOMThe value is a custom value.
CSS_INHERITThe value is inherited and the cssText contains "inherit".
CSS_PRIMITIVE_VALUEThe 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 CSSValue interface.
CSS_VALUE_LISTThe value is a CSSValue list and an instance of the {{DOMxRef("CSSValueList")}} interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
+
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('DOM2 Style', 'css.html#CSS-CSSValue', 'CSSValue')}}{{Spec2('DOM2 Style')}}初回定義
+ +

ブラウザー実装状況

+ +
+ + +

{{Compat("api.CSSValue")}}

+
+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf