public interface DeclarationCondition
A condition that declares a property name and a value.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()The property name.getValue()booleanvoidsetValue(ExtendedCSSValue value) Set the condition feature value.voidSet a serialized value for the property, setting theparsableflag tofalse.
-
Method Details
-
getName
String getName()The property name.- Returns:
- the property name.
-
getValue
ExtendedCSSValue getValue() -
isParsable
boolean isParsable() -
setValue
Set the condition feature value.- Parameters:
value- the value.- Throws:
DOMException- if the value is incompatible with the feature being tested with the condition.
-
setValue
Set a serialized value for the property, setting theparsableflag tofalse.This should be done only when a proper value could not be parsed.
A condition which has a serialized value but not a real value is never going to match, although the serialized value shall be used for serializations.
- Parameters:
cssText- the serialized value.
-