class CSSStyleSheet extends StyleSheet
An object implementing the CSSStyleSheet interface represents a single CSS style sheet.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- CSSStyleSheet
- StyleSheet
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CSSStyleSheet()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addImport(bstrURL: String, lIndex: Int = js.native): Int
- def addPageRule(bstrSelector: String, bstrStyle: String, lIndex: Int = js.native): Int
- def addRule(bstrSelector: String, bstrStyle: String = js.native, lIndex: Int = js.native): Int
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- var cssRules: CSSRuleList
Returns a CSSRuleList of the CSS rules in the style sheet.
Returns a CSSRuleList of the CSS rules in the style sheet.
MDN
- var cssText: String
- def deleteRule(index: Int = js.native): Unit
Deletes a rule from the style sheet.
Deletes a rule from the style sheet.
MDN
- 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.
MDN
- Definition Classes
- StyleSheet
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def href: String
Returns a DOMString representing the location of the stylesheet.
Returns a DOMString representing the location of the stylesheet.
MDN
- Definition Classes
- StyleSheet
- var id: String
- var imports: StyleSheetList
- def insertRule(rule: String, index: Int = js.native): 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.
MDN
- var isAlternate: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var isPrefAlternate: Boolean
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def media: MediaList
Returns a MediaList representing the intended destination medium for style information.
Returns a MediaList representing the intended destination medium for style information.
MDN
- Definition Classes
- StyleSheet
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def ownerNode: Node
ownerNode returns the node that associates this style sheet with the document.
ownerNode returns the node that associates this style sheet with the document.
MDN
- Definition Classes
- StyleSheet
- var ownerRule: CSSRule
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.MDN
- var owningElement: Element
- def parentStyleSheet: 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.
MDN
- Definition Classes
- StyleSheet
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var readOnly: Boolean
- def removeImport(lIndex: Int): Unit
- def removeRule(lIndex: Int): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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.
MDN
- Definition Classes
- StyleSheet
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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.
MDN
- Definition Classes
- StyleSheet
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()