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
optionsObject
no
Options to customize the behavior of the
computedStyle function. See the Options section for more guidance.Options
Option
Type
Default
Description
pseudoElementstring
undefinedThe pseudo-element to get the computed style for.