public Element attachChild(Element parent, Element child, Element before) {
if (!isIE6()) {
return super.attachChild(parent, child, before);
}
DivElement container = Document.get().createDivElement();
container.appendChild(child);
container.getStyle().setPosition(Position.ABSOLUTE);
container.getStyle().setOverflow(Overflow.HIDDEN);
child.getStyle().setPosition(Position.ABSOLUTE);
// Hang the style ruler from the container element, but associate it with
// the child element, so that measureDecoration(child) will work.
setPropertyElement(child, "__styleRuler", createStyleRuler(container));