Packages

c

org.scalajs.dom.raw

CSSMediaRule

class CSSMediaRule extends CSSRule

CSSMediaRule is an object representing a single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).

MDN

Annotations
@JSType() @native() @JSGlobal()
Linear Supertypes
CSSRule, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CSSMediaRule
  2. CSSRule
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CSSMediaRule()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var CHARSET_RULE: Int
    Definition Classes
    CSSRule
  5. var FONT_FACE_RULE: Int
    Definition Classes
    CSSRule
  6. var IMPORT_RULE: Int
    Definition Classes
    CSSRule
  7. var KEYFRAMES_RULE: Int
    Definition Classes
    CSSRule
  8. var KEYFRAME_RULE: Int
    Definition Classes
    CSSRule
  9. var MEDIA_RULE: Int
    Definition Classes
    CSSRule
  10. var NAMESPACE_RULE: Int
    Definition Classes
    CSSRule
  11. var PAGE_RULE: Int
    Definition Classes
    CSSRule
  12. var STYLE_RULE: Int
    Definition Classes
    CSSRule
  13. var UNKNOWN_RULE: Int
    Definition Classes
    CSSRule
  14. var VIEWPORT_RULE: Int
    Definition Classes
    CSSRule
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  17. var cssRules: CSSRuleList
  18. var cssText: String

    cssText returns the actual text of the style rule.

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

    MDN

    Definition Classes
    CSSRule
  19. def deleteRule(index: Int = js.native): Unit
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def insertRule(rule: String, index: Int = js.native): Int
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  29. var media: MediaList

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

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

    MDN

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. var parentRule: CSSRule

    Returns the containing rule, otherwise null.

    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.

    MDN

    Definition Classes
    CSSRule
  34. var parentStyleSheet: CSSStyleSheet

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

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

    MDN

    Definition Classes
    CSSRule
  35. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toLocaleString(): String
    Definition Classes
    Object
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. var type: Int
    Definition Classes
    CSSRule
  40. def valueOf(): Any
    Definition Classes
    Object
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from CSSRule

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped