This is a demo plugin to show that RTL styles are not being enqueued correctly when generated by wp-scripts & register_block_type_from_metadata.
To test it out, download the repo & drop it into the plugins directory of a WordPress install. Or use wp-env start from the root of the project (requires wp-env to be globally installed). SCRIPT_DEBUG should be false.
Create a post and add the "RTL Style Example" block. View post on the frontend. On an LTR langauge site (English), the text should have a border on the left.
Switch your site language to an RTL language (Settings > General), the admin and frontend will flip to use RTL styles. View the post again, and the border is still on the left. It should be on the right, in RTL.
| LTR | RTL (incorrect) |
|---|---|
![]() |
![]() |

