public static boolean mayHaveFirstLetter(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY);
public static boolean mayHaveFirstLetter(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false; String display = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
    public static boolean mayHaveFirstLetter(CalculatedStyle style) {        String display = style.getStringProperty(CSSName.DISPLAY);        if (display.equals("block")) return true;        if (display.equals("list-item")) return true;        if (display.equals("table-cell")) return true;        if (display.equals("table-caption")) return true;        if (display.equals("inline-block")) return true;        return false;    }