All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalajs.dom.html.css.CSSRule.scala Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package io.scalajs.dom.html.css

import scala.scalajs.js

/**
  * The CSSRule interface represents a single CSS rule.
  * @author [email protected]
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CssRule
  * @see https://developer.mozilla.org/en-US/docs/Web/API/CssRule#Type_constants
  */
@js.native
trait CSSRule extends js.Object {

  /**
    * Represents the textual representation of the rule, e.g. "h1,h2 { font-size: 16pt }" or "@import 'url'".
    * To access or modify parts of the rule (e.g. the value of "font-size" in the example) use the properties
    * on the specialized interface for the rule's type.
    */
  def cssText: String = js.native

  /**
    * Read only: 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.
    */
  def parentRule: CSSRule = js.native

  /**
    * Read only: Returns the CSSStyleSheet object for the style sheet that contains this rule CSSRule.
    */
  def parentStyleSheet: CSSStyleSheet = js.native

  /**
    * Read only: One of the Type constants indicating the type of CSS rule.
    */
  def `type`: CSSRule = js.native

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy