For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface StyleSheet
disabled: boolean;
href: string | null;
ownerNode: Element | ProcessingInstruction | null;
parentStyleSheet: CSSStyleSheet | null;
title: string | null;
type: string;
get media(): MediaList;
set media(mediaText: string): void;
}
Hierarchy (View Summary)
- StyleSheet
Properties
disabled
The disabled property of the StyleSheet interface determines whether the style sheet is prevented from applying to the document.
Readonlyhref
The href property of the StyleSheet interface returns the location of the style sheet.
ReadonlyownerNode
The ownerNode property of the StyleSheet interface returns the node that associates this style sheet with the document.
ReadonlyparentStyleSheet
The parentStyleSheet property of the StyleSheet interface returns the style sheet, if any, that is including the given style sheet.
Readonlytitle
The title property of the StyleSheet interface returns the advisory title of the current style sheet.
Readonlytype
The type property of the StyleSheet interface specifies the style sheet language for the given style sheet.
Accessors
media
-
The read-only
mediaproperty of the StyleSheet interface contains a MediaList object representing the intended destination media for style information.Returns MediaList
-
set media(mediaText: string): void
Parameters
- mediaText: string
Returns void
An object implementing the
StyleSheetinterface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.MDN Reference