Provides resources for parsing style strings.
Static
Parses a pixel string / computed styles. Ex. 100px returns 100.
100px
100
Value to parse.
The integer component of a pixel string.
Returns the pixel value for 1rem based on the root document element. You may apply an optional multiplier.
1rem
Optional
Optional multiplier to apply to rem pixel value; default: 1.
rem
Optional parameters.
The target DOM Document if different from the main browser global document.
document
The pixel value for 1rem with or without a multiplier based on the root document element.
Provides resources for parsing style strings.