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

Move font-family to html from body #70

Closed
bes-internal opened this issue Apr 3, 2023 · 4 comments
Closed

Move font-family to html from body #70

bes-internal opened this issue Apr 3, 2023 · 4 comments

Comments

@bes-internal
Copy link

font-family styles should be placed as high up in the hierarchy as possible.
In many projects, fonts are installed for the whole site in html or in :root

@bes-internal
Copy link
Author

I tested and smoke the documentation and it looks like we should use html (with specifity 0-0-1) because the specificity of :root is higher (0-1-0). That means the property rules declared under :root will take precedence over those under html even if it is later in the code.
Move to html please

sindresorhus added a commit that referenced this issue Apr 5, 2023
sindresorhus added a commit that referenced this issue Apr 5, 2023
@sindresorhus
Copy link
Owner

b802561

@roydukkey
Copy link

🙃 Ping for a release of b802561. Thanks.

@sindresorhus
Copy link
Owner

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

No branches or pull requests

3 participants