StyleSheet
An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
Extended by
Accessors
media
Get Signature
get media(): MediaList;
The read-only media property of the StyleSheet interface contains a MediaList object representing the intended destination media for style information.
Returns
Set Signature
set media(mediaText): void;
Parameters
| Parameter | Type |
|---|---|
mediaText | string |
Returns
void
Properties
disabled
disabled: boolean;
The disabled property of the StyleSheet interface determines whether the style sheet is prevented from applying to the document.
href
readonly href: string | null;
The href property of the StyleSheet interface returns the location of the style sheet.
ownerNode
readonly ownerNode:
| Element
| ProcessingInstruction
| null;
The ownerNode property of the StyleSheet interface returns the node that associates this style sheet with the document.
parentStyleSheet
readonly parentStyleSheet: CSSStyleSheet | null;
The parentStyleSheet property of the StyleSheet interface returns the style sheet, if any, that is including the given style sheet.
title
readonly title: string | null;
The title property of the StyleSheet interface returns the advisory title of the current style sheet.
type
readonly type: string;
The type property of the StyleSheet interface specifies the style sheet language for the given style sheet.