* @param element the parent element.
* @param styles the pseudo element styles.
* @return the element that effects the pseudo element.
*/
private Element getElement(Element element, Styles styles) {
MutablePropertyValues propValues = styles.getPropertyValues();
Element e = element.getDOMFactory().createElement();
e.setStyles(styles);
// Get the computed value, as the properties are from a pseudo element
// it will not be fully populated so use the defaults if not set.
StyleValue display = propValues
.getComputedValue(StylePropertyDetails.DISPLAY);
if (display == null) {
display = StylePropertyDetails.DISPLAY.getStandardDetails()
.getInitialValue();
} else {
// Clear the property value.
propValues.clearPropertyValue(StylePropertyDetails.DISPLAY);
}
String name = (String) DISPLAY_MAP.get(display);
if (name == null) {
// displayValue may be a CSS-valid value but only