A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/length below:

CSSUnparsedValue: length property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. CSSUnparsedValue
  4. length

Filter sidebar

In this article
  1. CSSUnparsedValue
  2. Constructor
    1. CSSUnparsedValue()
  3. Instance properties
    1. length
  4. Instance methods
    1. entries()
    2. forEach()
    3. keys()
    4. values()
  5. Inheritance
    1. CSSStyleValue
In this article CSSUnparsedValue: length property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The length read-only property of the CSSUnparsedValue interface returns the number of items in the object.

Value

An integer.

Examples

In this example we employ the CSSUnparsedValue() constructor, then query the length:

js

const values = new CSSUnparsedValue(["1em", "#445566", "-45px"]);

console.log(values.length); // 3
Specifications Specification CSS Typed OM Level 1
# dom-cssunparsedvalue-length
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 7, 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4