CSSStyleRule

@native @JSGlobal @JSType
class CSSStyleRule extends CSSRule

CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).

class CSSRule
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

var readOnly: Boolean
var selectorText: String

Gets/sets the textual representation of the selector for this rule, e.g. "h1,h2".

Gets/sets the textual representation of the selector for this rule, e.g. "h1,h2".

Returns the CSSStyleDeclaration object for the rule.

Returns the CSSStyleDeclaration object for the rule.

Inherited fields

var CHARSET_RULE: Int
Inherited from:
CSSRule
Inherited from:
CSSRule
var IMPORT_RULE: Int
Inherited from:
CSSRule
Inherited from:
CSSRule
var KEYFRAME_RULE: Int
Inherited from:
CSSRule
var MEDIA_RULE: Int
Inherited from:
CSSRule
Inherited from:
CSSRule
var PAGE_RULE: Int
Inherited from:
CSSRule
var STYLE_RULE: Int
Inherited from:
CSSRule
var UNKNOWN_RULE: Int
Inherited from:
CSSRule
var VIEWPORT_RULE: Int
Inherited from:
CSSRule
var `type`: Int
Inherited from:
CSSRule
var cssText: String

cssText returns the actual text of the style rule. To be able to set a stylesheet rule dynamically, see Using dynamic styling information.

cssText returns the actual text of the style rule. To be able to set a stylesheet rule dynamically, see Using dynamic styling information.

Inherited from:
CSSRule

Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an @media block, the parent rule would be that CSSMediaRule.

Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an @media block, the parent rule would be that CSSMediaRule.

Inherited from:
CSSRule

parentStyleSheet returns the stylesheet object in which the current rule is defined.

parentStyleSheet returns the stylesheet object in which the current rule is defined.

Inherited from:
CSSRule