### Description The default `aspectRatio` set in `theme.json` doesn't work ### Step-by-step reproduction instructions 1. Add the following code to the default settings of the block in theme.json. ```json "core/post-featured-image": { "dimensions": { "aspectRatio": "1" } }, ``` 2. Go to post or page and place the Featured image block. 3. You will see that the CSS for the default aspect ratio does not work. https://github.com/WordPress/gutenberg/blob/951879a501faa8c612664ddc226a5c09a72f7fbc/packages/block-library/src/post-featured-image/index.php#L44-L46 Related:https://github.com/WordPress/gutenberg/pull/47271 ### Screenshots, screen recording, code snippet https://github.com/user-attachments/assets/37193349-3ab0-40d5-9753-a0818cdf0ac7 ### Environment info WordPress version: 6.7.2 Twenty Twenty-Five Gutenberg: version: 20.6.0-rc.1 ### Please confirm that you have searched existing issues in the repo. - [x] Yes ### Please confirm that you have tested with all plugins deactivated except Gutenberg. - [x] Yes ### Please confirm which theme type you used for testing. - [x] Block - [ ] Classic - [ ] Hybrid (e.g. classic with theme.json) - [ ] Not sure
Description
The default
aspectRatioset intheme.jsondoesn't workStep-by-step reproduction instructions
Go to post or page and place the Featured image block.
You will see that the CSS for the default aspect ratio does not work.
gutenberg/packages/block-library/src/post-featured-image/index.php
Lines 44 to 46 in 951879a
Related:#47271
Screenshots, screen recording, code snippet
f.mp4
Environment info
WordPress version: 6.7.2
Twenty Twenty-Five
Gutenberg: version: 20.6.0-rc.1
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.