You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Post Editor: iframe editor canvas padding is overridden by zero in the classic theme #76863
When a classic theme is active, the body element is expected to have 8px padding.
In WP 6.9:
However, this padding is unintentionally overridden by zero in WP 7.0 and Gutenberg:
This causes the text to stick to the edge of the canvas, which can make it look slightly unappealing and affect text editing.
I've identified that this issue was caused by #73971. Specifically, the zero-padding here became apparent because global styles were internally enabled in the classic theme.
Step-by-step reproduction instructions
Activate Twenty Twenty
Open the post editor
Narrow your browser width or switch to tablet view
This zero padding also affects full-width blocks. The block overflows because a negative margin of 8px is applied to the left and right, despite the canvas having no padding.
changed the title [-]Post Editor: iframe editor canvas padding is overridden to zero In the classic theme[/-][+]Post Editor: iframe editor canvas padding is overridden by zero in the classic theme[/+]on Mar 27, 2026
Activity
t-hamano commentedon Mar 27, 2026
This zero padding also affects full-width blocks. The block overflows because a negative margin of
8pxis applied to the left and right, despite the canvas having no padding.[-]Post Editor: iframe editor canvas padding is overridden to zero In the classic theme[/-][+]Post Editor: iframe editor canvas padding is overridden by zero in the classic theme[/+]