SHIFT + D

computed style

Updated on August 22, 2024Source codeTests

createComputedStyle is a pipe that transforms an element to a `CSSStyleDeclaration for that element, or optionally one of its pseudo-elements.

Create computed style

Call createComputedStyle with these parameters to create your computedStyle function:

Parameter
Type
Required
Description
options
Object
no
Options to customize the behavior of the computedStyle function. See the Options section for more guidance.

Options

Option
Type
Default
Description
pseudoElement
string
undefined
The pseudo-element to get the computed style for.

cloneconcat

Edit doc on GitHub

ON THIS PAGE

computed styleCreate computed styleOptions