Site Editor:core/query-pagination margin-block-start not working
Description
core/query-pagination block margin-block-start not working in site editor.
Step-by-step reproduction instructions
1.Dashboard -> Appearance -> Editor 2.Choose home template
Screenshots, screen recording, code snippet
Work
https://github.com/WordPress/gutenberg/assets/15373114/c7504661-b343-4150-a7a2-34e73ec12f0c
Not work
https://github.com/WordPress/gutenberg/assets/15373114/54a7e609-b895-4c56-8eb5-804c160b69dd
Environment info
WP 6.3 Twenty Twenty-Three 1.2 and other theme
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
I testing this out and found that the missing margin is caused by the editor styling for this block, which explicitly sets margin: 0 for the editor interface
https://github.com/WordPress/gutenberg/blob/22c55f658ed349254bd146c15bc4150c59f68d3d/packages/block-library/src/query-pagination/editor.scss#L7-L12
I'm not exactly sure why this is originally added, but it prevents the block from visually matching the frontend for the spacing between the blocks. Although changing it to inherit margin would make it match the layout and have that consistency between editor and frontend.
If this sounds like the right direction, I'd be happy to open a PR for the change.