An object implementing the StyleSheet interface represents a single style sheet.

MDN Reference

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
Index

Properties

disabled: boolean

The disabled property of the applying to the document.

MDN Reference

href: string | null

The href property of the StyleSheet interface returns the location of the style sheet.

MDN Reference

ownerNode: Element | ProcessingInstruction | null

The ownerNode property of the with the document.

MDN Reference

parentStyleSheet: CSSStyleSheet | null

The parentStyleSheet property of the the given style sheet.

MDN Reference

title: string | null

The title property of the StyleSheet interface returns the advisory title of the current style sheet.

MDN Reference

type: string

The type property of the StyleSheet interface specifies the style sheet language for the given style sheet.

MDN Reference

Accessors

  • get media(): MediaList

    The media property of the StyleSheet interface specifies the intended destination media for style information.

    MDN Reference

    Returns MediaList

  • set media(mediaText: string): void

    Parameters

    • mediaText: string

    Returns void