DiagnosticsStyles object

Object that provides methods and properties to access the CSS-diagnostics object.

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 cssStyles = DiagnosticGlobalScope.styles;

DOM Information

Inheritance Hierarchy

The DiagnosticsStyles does not inherit from any class or interface.

Members

The DiagnosticsStyles object has these types of members:

  • Methods

Methods

The DiagnosticsStyles object has these methods.

Method Description
calculateTracedStyles

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

getDynamicPropertyList

Returns an unordered list of properties that have been modified in the DOM after the style declaration was created.

getParsedPropertyList

Returns an ordered list of properties that were parsed when the style declaration was created.

getSourceLocation

Returns an object that contains the line, column, and file location of a style declaration in its original source.

getSpecificity

Obtains the specificity of a passed selector or list of selectors, as per the W3C spec on selector specificity.

getTracedStyles

Returns an object that represents the style tracing for an element.