org.w3c.dom.css.CSSImportRule Maven / Gradle / Ivy
/*
* Copyright (C) 2005 by Quentin Anciaux
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
* for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; if not, write to the Free Software Foundation,
* Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* @author Quentin Anciaux
*/
package org.w3c.dom.css;
import org.w3c.dom.stylesheets.MediaList;
/**
* The CSSImportRule
interface represents a @import rule
* within a CSS style sheet. The @import
rule is used to
* import style rules from other style sheets.
*
*
* See also the Document
* Object Model (DOM) Level 2 Style Specification .
*
*
* @since DOM Level 2
*/
public interface CSSImportRule
extends CSSRule {
/**
* The location of the style sheet to be imported. The attribute will not
* contain the "url(...)"
specifier around the URI.
*
* @return DOCUMENT ME!
*/
public String getHref();
/**
* A list of media types for which this style sheet may be used.
*
* @return DOCUMENT ME!
*/
public MediaList getMedia();
/**
* The style sheet referred to by this rule, if it has been loaded. The
* value of this attribute is null
if the style sheet has not
* yet been loaded or if it will not be loaded (e.g. if the style sheet is
* for a media type not supported by the user agent).
*
* @return DOCUMENT ME!
*/
public CSSStyleSheet getStyleSheet();
}