/* Force hasLayout so the 's box gets measured correctly */ .ve-ce-mwReferenceNode { display: inline-block; } /* Undo overflow: hidden; from MW CSS to work around hasLayout issue */ .ve-ce-surface h1, .ve-ce-surface h2, .ve-ce-surface h3, .ve-ce-surface h4, .ve-ce-surface h5, .ve-ce-surface h6 { overflow: visible; }