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

js.web.cssom.CSSStyleRule Maven / Gradle / Ivy

package js.web.cssom;

import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

/**
 * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).
 */
public interface CSSStyleRule extends CSSRule {
    @JSBody(script = "return CSSStyleRule.prototype")
    static CSSStyleRule prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new CSSStyleRule()")
    static CSSStyleRule create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    String getSelectorText();

    @JSProperty
    void setSelectorText(String selectorText);

    @JSProperty
    CSSStyleDeclaration getStyle();


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy