if (style.hasProperty(CSSName.TOP)) {
if (!style.isIdent(CSSName.TOP, IdentValue.AUTO)) {
    private static int[] extractLeftTopRelative(Context c) {        CalculatedStyle style = c.getCurrentStyle();        int top = 0;        int left = 0;        int topLeft[] = null;        if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) {            if (style.hasProperty(CSSName.RIGHT)) {                left = -(int) style.getFloatPropertyProportionalWidth(CSSName.RIGHT, c.getBlockFormattingContext().getWidth(), c.getCtx());            }            if (style.hasProperty(CSSName.BOTTOM)) {                top = -(int) style.getFloatPropertyProportionalHeight(CSSName.BOTTOM, c.getBlockFormattingContext().getHeight(), c.getCtx());            }            if (style.hasProperty(CSSName.TOP)) {                top = (int) style.getFloatPropertyProportionalHeight(CSSName.TOP, c.getBlockFormattingContext().getHeight(), c.getCtx());            }            if (style.hasProperty(CSSName.LEFT)) {                left = (int) style.getFloatPropertyProportionalWidth(CSSName.LEFT, c.getBlockFormattingContext().getWidth(), c.getCtx());            }            topLeft = new int[]{top, left};        }        return topLeft;    }