getAppliedStyles method

Returns a list of styles associated with an element which could have applied a given property.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

var retVal = DiagnosticsTracedStyles.getAppliedStyles(sFilter);

Parameters

  • sFilter [in, optional]
    Type: DOMString

    Style to query.

Return value

Type: any

An array of CSS style declaration objects.

Remarks

(in reverse application order, thus [0] is the style containing the property that was actually applied, etc.). If called with no arguments, it returns a list of styles applying directly to this element. [any] := array of CSSStyleDeclaration objects

See also

DiagnosticsTracedStyles