For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface StylePropertyMapReadOnly
interface StylePropertyMapReadOnly {
size: number;
"[iterator]"(): StylePropertyMapReadOnlyIterator<
[string, Iterable<CSSStyleValue, any, any>],
>;
entries(): StylePropertyMapReadOnlyIterator<
[string, Iterable<CSSStyleValue, any, any>],
>;
forEach(
callbackfn: (
value: CSSStyleValue[],
key: string,
parent: StylePropertyMapReadOnly,
) => void,
thisArg?: any,
): void;
get(property: string): CSSStyleValue | undefined;
getAll(property: string): CSSStyleValue[];
has(property: string): boolean;
keys(): StylePropertyMapReadOnlyIterator<string>;
values(): StylePropertyMapReadOnlyIterator<
Iterable<CSSStyleValue, any, any>,
>;
}
size: number;
"[iterator]"(): StylePropertyMapReadOnlyIterator<
[string, Iterable<CSSStyleValue, any, any>],
>;
entries(): StylePropertyMapReadOnlyIterator<
[string, Iterable<CSSStyleValue, any, any>],
>;
forEach(
callbackfn: (
value: CSSStyleValue[],
key: string,
parent: StylePropertyMapReadOnly,
) => void,
thisArg?: any,
): void;
get(property: string): CSSStyleValue | undefined;
getAll(property: string): CSSStyleValue[];
has(property: string): boolean;
keys(): StylePropertyMapReadOnlyIterator<string>;
values(): StylePropertyMapReadOnlyIterator<
Iterable<CSSStyleValue, any, any>,
>;
}
Hierarchy (View Summary)
- StylePropertyMapReadOnly
Properties
Readonlysize
size: number
The size read-only property of the StylePropertyMapReadOnly interface returns an unsigned long integer containing the size of the StylePropertyMapReadOnly object.
Methods
[iterator]
-
Returns StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
entries
-
Returns StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue, any, any>]>
forEach
-
forEach(
callbackfn: (
value: CSSStyleValue[],
key: string,
parent: StylePropertyMapReadOnly,
) => void,
thisArg?: any,
): voidParameters
- callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void
OptionalthisArg: any
Returns void
get
-
The
get()method of the StylePropertyMapReadOnly interface returns a CSSStyleValue object for the first value of the specified property.Parameters
- property: string
Returns CSSStyleValue | undefined
getAll
-
The
getAll()method of the StylePropertyMapReadOnly interface returns an array of CSSStyleValue objects containing the values for the provided property.Parameters
- property: string
Returns CSSStyleValue[]
has
-
The
has()method of the StylePropertyMapReadOnly interface indicates whether the specified property is in the StylePropertyMapReadOnly object.Parameters
- property: string
Returns boolean
keys
-
Returns StylePropertyMapReadOnlyIterator<string>
values
-
Returns StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue, any, any>>
The
StylePropertyMapReadOnlyinterface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using Element.computedStyleMap().MDN Reference