Defines the properties and methods inherited by objects in the CSSStyleSheet prototype chain.
Syntax
| HTML | N/A |
|---|
| Scripting | CSSStyleSheet.prototype |
|---|
Members Table
The following table lists the members exposed by the
CSSStyleSheet Constructor
object.
Attributes/Properties
| Attribute | Property | Description |
|---|
| DISABLED | disabled |
Sets or retrieves a value that indicates whether the user can interact with the object. |
| href |
Sets or retrieves the URL of the linked style sheet. |
| ID | id |
Sets or retrieves the string identifying the object. |
| MEDIA | media |
Gets or sets the media type. |
| owningElement |
Retrieves the next object in the HTML hierarchy. |
| parentStyleSheet |
Retrieves the style sheet that imported the current style sheets. |
| readOnly |
Retrieves whether the rule or style sheet is defined on the document or is imported. |
| TITLE | title |
Sets or retrieves the title of the style sheet. |
| type |
Retrieves the Cascading Style Sheets (CSS) language in which the style sheet is written. |
Collections
| Collection | Description |
|---|
| imports |
Retrieves a collection of all the imported style sheets defined for the respective styleSheet object. |
| pages |
Retrieves a collection of page objects, which represent @page rules in a styleSheet. |
| rules |
Retrieves a collection of rules defined in a style sheet. |
Methods
| Method | Description |
|---|
| addImport |
Adds a style sheet to the imports collection for the specified style sheet. |
| addPageRule |
Creates a new page object for a style sheet. |
| addRule |
Creates a new rule for a style sheet. |
| removeImport |
Removes the imported style sheet from the imports collection based on ordinal position. |
| removeRule |
Deletes an existing style rule for the styleSheet object, and adjusts the index of the rules collection accordingly. |
Styles
| Style property | Description |
|---|
| cssText |
Gets or sets the persisted representation of the style rule. |
Remarks
For more information on this and other DOM Prototypes see
Document Object Model Prototypes, Part 1: Introduction.
This prototype does not derive from any objects.
Applies To
See Also