HTML Preview not displaying correctly for some themes #13414
Labels
[Block] HTML
Affects the the HTML Block
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
Milestone
Describe the bug
This seems to be a regression introduced by #13080
For some themes (Twenty Seventeen, Twenty Sixteen, Twenty Fifteen) the Custom HTML block's preview is not displaying correctly:
The cause seems to be that those themes have some styles on the
body
element that are now being included in the preview. In the case of Twenty Seventeen:This margin is causing the content to overflow the preview.
To Reproduce
Steps to reproduce the behavior:
<div>test</div>
Expected behavior
The preview should be displayed clearly without the need to scroll.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The text was updated successfully, but these errors were encountered: