Skip to content

Expose font default values #175

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

Merged

Conversation

BoricuaEnLaLuna
Copy link
Contributor

There are cases where a declaration of a font: inherit/initial/unset can matter, so they should be exposed to allow consuming applications to make the correct decision.

For more context, there are cases when these values should override any other font properties that may have been set by other css style selectors (depending on factors such as origin stylesheet, specificity, positioning, and importance tags). An example of what I mean can be found here: https://stackoverflow.com/questions/12880536/what-is-the-purpose-of-using-font-inherit

The example in the answer from that post is not referring to the font property, but the same concept applies. If the font-weight is set to bold on all elements td, but at the same time that same td also has class attributed to it that sets font: inherit (or initial or unset etc.), then that bold font-weight will no longer apply. This is why we need this library to expose such values so this determination can be done by the consuming application.

There are cases where a declaration of font: inherit/initial/unset can matter so they should be exposed so consuming applications can make the correct decision.

There are cases when these values should override any other font properties that may have been set by other css style selectors (depending on factors such as origin stylesheet, specificity, positioning, and importance tags).
@TylerBrinks TylerBrinks merged commit 35fb718 into TylerBrinks:master Feb 12, 2024
@BoricuaEnLaLuna BoricuaEnLaLuna deleted the fixFontDefaultValues branch February 18, 2024 05:30
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.

2 participants