Layout-internal replaced elements behave as inline, while the outer ruby or table elements behave according to their outer display type. This addresses #6000 and refactors the edits made to implement ...