calculateTracedStyles method

Calculate the style tracing info. All calls to getTracedStyles following this call return data frozen to the point of this call.

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

 

 

Syntax

DiagnosticsStyles.calculateTracedStyles(element);

Parameters

  • element [in, optional]
    Type: Element

    An element on the current webpage.

Return value

This method does not return a value.

Remarks

This method can be called again to update the data. Calling calculateTracedStyles with no argument calculates the info for the entire DOM tree. Calling it with element calculates traced Styles only for the branch containing that element.

See also

DiagnosticsStyles