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
When turning a ::before element into a footnote, footnote markers and calls are not displayed.
The use case it to automatically display the URL that an <a> tag points to in a footnote. For this, I use content: attr(href) in a ::before pseudo-element.
The ::footnote-call and ::footnote-marker pseudo-elements cannot be used for ::before or ::after pseudo-elements. In general, a pseudo-element selector ::pseudo-element is same as *::pseudo-element which can apply to any elements, but not to other pseudo-elements. And multiple pseudo-elements, e.g., a::before::footnote-call, are not allowed.
A workaround is to use ::before and ::after pseudo-elements as follows:
Thanks a lot! That's a neat workaround. I suppose the only limitation is that the footnote marker cannot be styled separately from the footnote content in that case.
Describe the bug
When turning a
::before
element into a footnote, footnote markers and calls are not displayed.The use case it to automatically display the URL that an
<a>
tag points to in a footnote. For this, I usecontent: attr(href)
in a::before
pseudo-element.To Reproduce
Expected behavior
Both footnotes should have a call and a marker.
Screenshots
Actual behavior: the call and the marker are missing in the second footnote.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: