public static boolean isFloated(CalculatedStyle style) { String float_val = style.getStringProperty("float");
public static boolean isFloated(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false; String float_val = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
    public static boolean isFloated(CalculatedStyle style) {        String float_val = style.getStringProperty("float");        if (float_val == null) {            return false;        }        if (float_val.equals("left")) {            return true;        }        if (float_val.equals("right")) {            return true;        }        return false;    }