Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate font-variant from name element to name parts #287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sonovice
Copy link

@sonovice sonovice commented Mar 5, 2025

When using font-variant="small-caps" on the element in CSL styles, this formatting wasn't properly inherited by the individual name parts, causing the styling to be ignored. This fix ensures that font-variant styling is correctly propagated from the parent element to child name parts (given name and family name) while maintaining the behavior where connector words like "and" remain in normal text.

This allows for proper small-caps styling of author names in bibliography styles like IEEE while keeping connector words in regular formatting.

image

Fixes #175.

@sonovice
Copy link
Author

sonovice commented Mar 5, 2025

(Failed checks seem to be unrelated to this PR.)

@PgBiel PgBiel force-pushed the fix-font-variant-inheritance branch from c45f05e to cc7a194 Compare March 7, 2025 20:11
@PgBiel
Copy link
Contributor

PgBiel commented Mar 7, 2025

(Failed checks seem to be unrelated to this PR.)

Fixed. (Haven't taken a look at the PR itself yet.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

font-variant="small-caps" not supported for <name>
2 participants