element.getName());
assertNull("Styles should be null if element is optimized away",
element.getStyles());
assertTrue(element.getHead() instanceof Element);
PropertyValues childPropertyValues =
((Element) element.getHead()).getStyles().getPropertyValues();
assertEquals("Child styles should be preserved after the parent " +
"optimized away", topAlign, childPropertyValues.
getComputedValue(StylePropertyDetails.VERTICAL_ALIGN));
assertEquals("Child style should 'win' if both parent and child have" +
"a value set for a particular property", childPadding,
childPropertyValues.getComputedValue(
StylePropertyDetails.PADDING_BOTTOM));
}