public interface CSSStyleRule
| Modifier and Type | Method and Description |
|---|---|
String |
getPropertyValue(DOMCSS2Properties.CssProperty property)
Returns the property value for the current rule.
|
String |
getSelectorText()
For instance, for a rule "div > p { color:red;}" it returns "div > p"
WebAPIRuntimeException |
boolean |
isStale()
Checks is this pointer is stale (e.g., its position in the list of rules is not correct due to possible
addition/removal of rules.
|
String |
removeProperty(DOMCSS2Properties.CssProperty property) |
void |
setProperty(DOMCSS2Properties.CssProperty property,
String value)
set the new value for the given property
|
String getSelectorText()
WebAPIRuntimeExceptiona - WebAPIRuntimeException if the current rule is staleString getPropertyValue(DOMCSS2Properties.CssProperty property)
property - a - WebAPIRuntimeException if the current rule is staleString removeProperty(DOMCSS2Properties.CssProperty property)
property - a - WebAPIRuntimeException if the current rule is stalevoid setProperty(DOMCSS2Properties.CssProperty property, String value)
property - value - a - WebAPIRuntimeException if the current rule is staleboolean isStale()
CSSStyleSheetCopyright © 2020 OXPath Team. All rights reserved.