String visibility = CssUtils.setAndSaveProperty(element, "visibility", "hidden");
String display = style.getDisplay();
// if display set to none we remove it and let its normal style show through
if (style.getDisplay().equals("none")) {
style.removeProperty("display");
} else {
// it's likely display: none in a css class so we just have to guess.
// We guess display:block since that's common on containers.
style.setDisplay("block");
}