You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Footnote Block: Styles are applying to elements that happen to have the .fn class. #52136
[Block] FootnotesAffects the Footnotes Block[Priority] HighUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intended
The styles for this block select the .fn class globally. This makes any page content with this class render offscreen due to the text-indent property and replaced with [1]. The is the offending CSS:
.fn{counter-increment: footnotes;display: inline-block;font-size: smaller;text-indent:-9999999px;vertical-align: super
}.fn:after{content:"["counter(footnotes)"]";float: left;text-indent:0}
The class name needs to be more specific, or the CSS sector more specific.
Step-by-step reproduction instructions
Add the fn class to any page element.
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
[Block] FootnotesAffects the Footnotes Block[Priority] HighUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intended
Activity
carolinan commentedon Jun 30, 2023
I was able to reproduce this.
The default comments in classic themes use this class:
https://core.trac.wordpress.org/browser/tags/6.2/src/wp-includes/class-walker-comment.php#L335
Rayme commentedon Jun 30, 2023
I meet this issue too. I can't find the
.fn {xxx}in style.css file. All I can do is to disable the Gutenburg pluginhuhexian commentedon Jun 30, 2023
My friend met this issue too, then we helped him investigate the cause and found that it was caused by the Gutenberg plugin.