Layout (padding): invalid CSS when "Link Sides" inactive and fields left empty #33318
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The Layout panel includes support for user-defined padding. Users can choose to enter a single value for all sides of a block or unique values per side. This choice is offered via a
Link Sides
toggle button.When
Link Sides
is inactive and values are not entered for one or more sides, a property without a value is sometimes included in the inline style. When this happens the result looks like this:Step-by-step reproduction instructions
px
.rem
(this issue sometimes occurs without doing this but this step seems to ensure a consistent error).Expected behaviour
If a field is left empty the corresponding property should be omitted from the inline style.
Actual behaviour
The current output is invalid CSS: a property is declared without a value.
Screenshots or screen recording (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: