CSSStyleSheet

@native @JSGlobal @JSType

An object implementing the CSSStyleSheet interface represents a single CSS style sheet.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def addImport(bstrURL: String, lIndex: Int): Int
def addPageRule(bstrSelector: String, bstrStyle: String, lIndex: Int): Int
def addRule(bstrSelector: String, bstrStyle: String, lIndex: Int): Int
def deleteRule(index: Int): Unit

Deletes a rule from the style sheet.

Deletes a rule from the style sheet.

def insertRule(rule: String, index: Int): Int

The CSSStyleSheet.insertRule() method inserts a new style rule into the current style sheet.

The CSSStyleSheet.insertRule() method inserts a new style rule into the current style sheet.

def removeImport(lIndex: Int): Unit
def removeRule(lIndex: Int): Unit

Inherited methods

def `type`: String

Returns a DOMString representing the style sheet language for this style sheet.

Returns a DOMString representing the style sheet language for this style sheet.

Inherited from:
StyleSheet
def disabled: Boolean

Is a Boolean representing whether the current stylesheet has been applied or not.

Is a Boolean representing whether the current stylesheet has been applied or not.

Inherited from:
StyleSheet
def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def href: String

Returns a DOMString representing the location of the stylesheet.

Returns a DOMString representing the location of the stylesheet.

Inherited from:
StyleSheet
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object

Returns a MediaList representing the intended destination medium for style information.

Returns a MediaList representing the intended destination medium for style information.

Inherited from:
StyleSheet

ownerNode returns the node that associates this style sheet with the document.

ownerNode returns the node that associates this style sheet with the document.

Inherited from:
StyleSheet

Returns a StyleSheet including this one, if any; returns null if there aren't any.

Returns a StyleSheet including this one, if any; returns null if there aren't any.

Inherited from:
StyleSheet
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def title: String

Returns a DOMString representing the advisory title of the current style sheet.

Returns a DOMString representing the advisory title of the current style sheet.

Inherited from:
StyleSheet
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

Returns a CSSRuleList of the CSS rules in the style sheet.

Returns a CSSRuleList of the CSS rules in the style sheet.

var cssText: String
var id: String
var isAlternate: Boolean
var isPrefAlternate: Boolean

If this style sheet is imported into the document using an @import rule, the ownerRule property will return that CSSImportRule, otherwise it returns null.

If this style sheet is imported into the document using an @import rule, the ownerRule property will return that CSSImportRule, otherwise it returns null.

var readOnly: Boolean