Fixing `position: relative` bug mentioned in Issue #9342

resolves #9342