preserve stacking nesting with special ancestor. issue #256