Description
Sorry for the long title! There is an extra top margin on the first element in the content block when it's inside a query block. This is because, in the markup, the first visible element is not the first child, so the margin removal rule does not apply to it. This issue only occurs in the site editor. This is not a theme-specific issue.
Step-by-step reproduction instructions
- Go to the site editor
- Place a content block inside a query block.
- See the unwanted gap on the first visible element.
Screenshots, screen recording, code snippet

Environment info
- WP 6.8
- Gutenberg Trunk (The issue occurs even without activating Gutenberg)
- TT5, but not a theme-specific issue.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.