WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.42k stars 4.16k forks source link

Block Styles registered via a json file stopped working in Gutenberg 19.2.0 #66032

Open Bjornjansfelt opened 2 hours ago

Bjornjansfelt commented 2 hours ago

Description

I tried with the files in the Twenty Twenty-Five repository. styles / blocks / 01-display.json

The CSS is shown properly inside the Gutenberg editor but the css rules are missing on the actual page. If I downgrade to Gutenberg 19.1 if works both ways as expected.

Step-by-step reproduction instructions

  1. Go to https://github.com/WordPress/twentytwentyfive/tree/trunk/styles/blocks
  2. Copy the 01-display.json file
  3. Apply the style on a core/heading or core/paragraph
  4. Save and view page

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Bjornjansfelt commented 2 hours ago

I just noticed that it also stops working as soon as I wrap the core/heading or core/paragraph in a core/group.