Spacing Block Support allows extremely large padding values causing overflow #31773
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Feature] Layout
Layout block support, its UI controls, and style output.
[Type] Enhancement
A suggestion for improvement.
Description
The spacing block support allows the user to enter arbitrarily large values for padding, which does not respect
width
ormax-width
set on the block and can cause the block to overflow the page.Step-by-step reproduction instructions
Padding
input (99999
), and hit Enter.Expected behaviour
The block should not exceed the width of the page.
Actual behaviour
There is no maximum amount of padding, and the block becomes extremely large and overflows the page.
Screenshots or screen recording (optional)
_Note the horizontal scrollbar._
Code snippet (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: