configuration.setCssVersion(cssVersion);
configuration.initialize(device, builder);
// Run test with all the element emulations supported.
StyleEmulationPropertiesRenderer renderer =
configuration.getStyleEmulationPropertyRendererSelector();
Element html = domFactory.createElement();
html.setName("html");
Element element = domFactory.createElement();
element.setName(elementName);
html.addHead(element);
renderer.applyProperties(element, propertyValues);
return element;
}