Broad selector for figure
elements in WP 6.1
#45768
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Type] Enhancement
A suggestion for improvement.
Description
Also posted to trac for reference:
https://core.trac.wordpress.org/ticket/57103
I've just updated a bunch of our websites to 6.1 and seen that there's an incredibly broad css selector for all figure elements introduced into
./wp-includes/css/dist/block-library/style.min.css
:This has broken the styling on multiple themes we've developed for clients.
The same issue also happened a few months ago for img elements (https://core.trac.wordpress.org/ticket/55229 and #39021).
Is there anything that can be done to prevent this happening again?
Step-by-step reproduction instructions
figure
elementfigure
element already has a margin applied to it from./wp-includes/css/dist/block-library/style.min.css
Screenshots, screen recording, code snippet
N/A
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
The text was updated successfully, but these errors were encountered: