cssRules property

Retrieves a list of all Cascading Style Sheets (CSS) rules contained within the parent object.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2Internet Explorer 9



HRESULT value = object.get_cssRules(IHTMLStyleSheetRulesCollection** p);

Property values

Type: Object

a list of all CSS rules contained within the parent object.

Standards information


The list retrieved includes both rule sets (selectors and declaration blocks) and at-rules.

Rules are returned in the same order as they are listed in the parent object. Rules that were dropped during parsing (for instance, because of syntax errors) are not included. However, rules that use a selector or property that Windows Internet Explorer does not recognize are included in the list.