Contents

computedStyle(for:pseudoElement:)

Returns the computed style of an element and its pseudo element.

Declaration

func computedStyle(for element: DOMElement!, pseudoElement: String!) -> DOMCSSStyleDeclaration!

Parameters

  • element:

    The element whose computed style is returned.

  • pseudoElement:

    The pseudo element for element.

Return Value

An immutable object describing the computed style of element and pseudoElement according to the Cascading Style Sheets Specification at http://www.w3.org/TR/CSS21. Returns nil if the receiver doesn’t display element.

See Also

Getting and Setting CSS Properties