code: public String getCurrentStyle(Element elem, String name) {
  
          name = hyphenize(name);
          String propVal = getComputedStyle(elem, name);
          if (CmsDomUtil.Style.opacity.name().equals(name) && ((propVal == null) || (propVal.trim().length() == 0))) {
              propVal = "1";
          }
          return propVal;
      }
docs: Returns the computed style of the given element.<p>
  
  @param elem the element
  @param name the name of the CSS property
  
  @return the currently computed style