1. /*
  2. * Copyright (c) 2000 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package org.w3c.dom.css;
  13. import org.w3c.dom.views.AbstractView;
  14. import org.w3c.dom.Element;
  15. /**
  16. * This interface represents a CSS view. The <code>getComputedStyle</code>
  17. * method provides a read only access to the computed values of an element.
  18. * <p> The expectation is that an instance of the <code>ViewCSS</code>
  19. * interface can be obtained by using binding-specific casting methods on an
  20. * instance of the <code>AbstractView</code> interface.
  21. * <p> Since a computed style is related to an <code>Element</code> node, if
  22. * this element is removed from the document, the associated
  23. * <code>CSSStyleDeclaration</code> and <code>CSSValue</code> related to
  24. * this declaration are no longer valid.
  25. * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
  26. * @since DOM Level 2
  27. */
  28. public interface ViewCSS extends AbstractView {
  29. /**
  30. * This method is used to get the computed style as it is defined in .
  31. * @param elt The element whose style is to be computed. This parameter
  32. * cannot be null.
  33. * @param pseudoElt The pseudo-element or <code>null</code> if none.
  34. * @return The computed style. The <code>CSSStyleDeclaration</code> is
  35. * read-only and contains only absolute values.
  36. */
  37. public CSSStyleDeclaration getComputedStyle(Element elt,
  38. String pseudoElt);
  39. }