A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/CSSNumericValue/parse_static below:

CSSNumericValue: parse() static method - Web APIs

CSSNumericValue: parse() static method

Limited availability

The parse() static method of the CSSNumericValue interface converts a value string into an object whose members are value and the units.

Syntax
CSSNumericValue.parse(cssText)
Parameters
cssText

a string containing numeric and unit parts.

Return value

A CSSNumericValue.

Exceptions
SyntaxError DOMException

TBD

Examples

The following returns a CSSUnitValue object with a unit property equal to "px" and a value property equal to 42.

let numValue = CSSNumericValue.parse("42.0px");
Specifications Browser compatibility

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