AbstractViewCSS viewCss = CSSUtilities.getViewCSS(element);
CSSOMReadOnlyStyleDeclaration styleDecl = viewCss.getCascadedStyle(element, null);
// determine if text-decoration was explicity set on this element
CSSValue cssVal = styleDecl.getLocalPropertyCSSValue(CSS_TEXT_DECORATION_PROPERTY);
if (cssVal == null) {
// not explicitly set so return the copy of the parent's decoration
return textDecoration;
}
short t = cssVal.getCssValueType();
if (t == CSSValue.CSS_VALUE_LIST) {
// first check to see if its a valid list,
// ie. if it contains none then that is the only element