Post title block specificity #64266
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
I added the following to my custom theme
theme.json
file:The generated CSS in the editor is:
As you can see, the regular
h1
tag has a higher specificity than the post title block (because of the:where
pseudo-class). What is the reason for this? I think it should be the other way around; the.wp-block-post-title
class should take precedence as it's more specific. Can this behavior be modified? If so, how?Step-by-step reproduction instructions
theme.json
code to a themeScreenshots, screen recording, code snippet
No response
Environment info
theme.json
supportPlease confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: