CSSFunctionDeclarations: style プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
style は CSSFunctionDeclarations インターフェイスの読み取り専用プロパティで、CSSFunctionDescriptors オブジェクトを保持しています。これは @function ルール本体で利用可能な記述子を表します。
値
CSSFunctionDescriptors オブジェクトです。
style プロパティ自体は、CSSFunctionDescriptors オブジェクトを置き換えられないという意味で読み取り専用ですが、style プロパティに直接代入することは可能です。これは、その cssText プロパティへの代入と同等です。また、setProperty() メソッドと removeProperty() メソッドを使用して CSSFunctionDescriptors オブジェクトを変更することもできます。
例
例については主となる CSSFunctionDeclarations のリファレンスページを参照してください。
仕様書
| Specification |
|---|
| CSS Functions and Mixins Module> # dom-cssfunctiondeclarations-style> |