-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Description
The spacing block support allows the user to enter arbitrarily large values for padding, which does not respect width or max-width set on the block and can cause the block to overflow the page.
Step-by-step reproduction instructions
- Create a new post and insert a Cover block.
- In the Inspector Controls, open the Spacing panel, enter a very large number in the
Paddinginput (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
- WordPress version: 5.7.1
- Gutenberg version: trunk
- Are all plugins except Gutenberg deactivated? Yes
- Are you using a default theme (e.g. Twenty Twenty-One)? Yes
Device information
- Device: Desktop
- Operating system: Mac Big Sur
- Browser: Chrome 90
Metadata
Metadata
Assignees
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
