public interface CSSValue
CSSValue interface represents a simple or a complex
 value. A CSSValue object only occurs in a context of a CSS
 property.
 See also the Document Object Model (DOM) Level 2 Style Specification.
| Modifier and Type | Field and Description | 
|---|---|
| static short | CSS_CUSTOMThe value is a custom value. | 
| static short | CSS_INHERITThe value is inherited and the  cssTextcontains "inherit". | 
| static short | CSS_PRIMITIVE_VALUEThe value is a primitive value and an instance of the
  CSSPrimitiveValueinterface can be obtained by using
 binding-specific casting methods on this instance of theCSSValueinterface. | 
| static short | CSS_VALUE_LISTThe value is a  CSSValuelist and an instance of theCSSValueListinterface can be obtained by using
 binding-specific casting methods on this instance of theCSSValueinterface. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCssText()A string representation of the current value. | 
| short | getCssValueType()A code defining the type of the value as defined above. | 
| void | setCssText(String cssText)A string representation of the current value. | 
static final short CSS_INHERIT
cssText contains "inherit".static final short CSS_PRIMITIVE_VALUE
CSSPrimitiveValue interface can be obtained by using
 binding-specific casting methods on this instance of the
 CSSValue interface.static final short CSS_VALUE_LIST
CSSValue list and an instance of the
 CSSValueList interface can be obtained by using
 binding-specific casting methods on this instance of the
 CSSValue interface.static final short CSS_CUSTOM
String getCssText()
void setCssText(String cssText) throws DOMException
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax
   error (according to the attached property) or is unparsable.
   short getCssValueType()
 Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
 Copyright © 2005, 2025, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.