Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for CSSNumericValue: parse() static method.
Developer library 6
CSSUnparsedValue
specific type. If you know what kind of value the text represents, you can parse it further using the static `parse()` method of the type you expect, such as CSSNumericValue.parse() for a numeric value with a unit, or the more general CSSStyleValue.parse(), which additionally requires you to specify the target CSS property name. These `parse()` methods take a CSS text string, not a `CSSUnparsedValue` object. Howev
CSSMathMin
es _Also inherits properties from its parent interface, CSSMathValue._ - CSSMathMin.values - : Returns a CSSNumericArray object which contains one or more CSSNumericValue objects. ## Static methods _Also inherits methods from its parent interface, CSSMathValue._ ## Instance methods _Also inherits methods from its parent interface, CSSMathValue._ ## Description The CSS min() function takes one or more comma
CSSMathNegate
CSS Typed Object Model API The **`CSSMathNegate`** interface of the [CSS Typed Object Model API](/docs/Web/API/CSS_Object_Model) represents the negation of a CSSNumericValue. ## Constructor - CSSMathNegate() - : Creates a new `CSSMathNegate` object. ## Instance properties _Also inherits properties from its parent interface, CSSMathValue._ - CSSMathNegate.value - : Returns a CSSNumericValue object. ## S
CSSStyleValue
- : A stringifier that returns the value formatted as a string of standard CSS text. ## Interfaces based on CSSStyleValue - CSSImageValue - CSSKeywordValue - CSSNumericValue - CSSPositionValue - CSSTransformValue - CSSUnparsedValue ## Specifications ## Browser compatibility
CSSNumericValue
CSS Typed Object Model API The **`CSSNumericValue`** interface of the [CSS Typed Object Model API](/docs/Web/API/CSS_Typed_OM_API) is the base interface for objects that represent CSS numeric values, such as `10px`, `50%`, or `calc(1px + 2em)`. It provides the common methods for basic arithmetic, comparing values, and converting between units. > [!NOTE] > `CSSNumericValue` can't be constructed directly. > Instance
CSSNumericValue: parse() static method
CSS Typed Object Model API The **`parse()`** static method of the CSSNumericValue interface creates a `CSSNumericValue` from a string of CSS, such as `"42px"` or `"calc(50% + 10px)"`. > [!NOTE] > This method is only available in Window contexts, not in Worker or Worklet contexts. > All other methods of the `CSSNumericValue` interface are available in workers and worklets. ## Syntax ```js-nolint CSSNumericValue.pa