Layout Styles: Block list appender causes inconsistent application of layout margin styles #61846
Labels
[Feature] Layout
Layout block support, its UI controls, and style output.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
When a block type has margins, defined either through theme.json or global styles, they can be overridden by layout styles e.g. the constrained layout which removes the start and end margins on the first and last child elements respectively.
When the block list appender is inserted within a container with such a layout, the style removing the last child's margin now targets the appender instead of the last block causing a layout shift
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2024-05-22.at.4.50.11.PM.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: