CSSUnparsedValue: length プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
length
は CSSUnparsedValue
インターフェイスの読み取り専用プロパティで、オブジェクト内の項目数を返します。
値
整数です。
例
この例では、CSSUnparsedValue()
コンストラクターを使用したあと、長さを照会しています。
js
const values = new CSSUnparsedValue(["1em", "#445566", "-45px"]);
console.log(values.length); // 3
仕様書
Specification |
---|
CSS Typed OM Level 1 # dom-cssunparsedvalue-length |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
length |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.