Description
Adding a cover image as featured image with the "Fixed background" option duplicates the style element, which will result in the following code on the frontend:
<div class="wp-block-cover is-light has-parallax" style="background-image:url(PATH_TO_IMAGE);" style="margin-top:111px">
Step-by-step reproduction instructions
- Create a new post.
- Add featured image.
- Add cover block as featured image.
- In Media settings check "Fixed background".
- Add any custom styles (margin or padding).
Screenshots, screen recording, code snippet
No response
Environment info
WordPress version: 6.0.1 and 6.1-alpha-53771
Gutenberg version: 13.8.1 and 13.9.20220808
Theme: TT2
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
Adding a cover image as featured image with the "Fixed background" option duplicates the style element, which will result in the following code on the frontend:
<div class="wp-block-cover is-light has-parallax" style="background-image:url(PATH_TO_IMAGE);" style="margin-top:111px">Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress version: 6.0.1 and 6.1-alpha-53771
Gutenberg version: 13.8.1 and 13.9.20220808
Theme: TT2
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