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

allow special value of "initial" for "max" #32

Merged
merged 1 commit into from
Jan 17, 2016

Conversation

Merott
Copy link
Contributor

@Merott Merott commented Jul 31, 2015

Specifying "initial" as the max value will stop increasing the font size beyond the initial font size.

You may set data-fittext-max to the special value "initial" in order to prevent the font size from increasing beyond the CSS-computed style. This requires the font-size property to have been either inherited, or applied via a CSS selector. It does not work for inline font-size set via an inline style attribute. It also requires support for window.getComputedStyle() (IE 9+).

@patrickmarabeas patrickmarabeas merged commit ebffb34 into patrickmarabeas:master Jan 17, 2016
@patrickmarabeas
Copy link
Owner

Thanks for the PR, finally implemented : )

@Merott Merott deleted the max-initial branch January 17, 2016 10:01
@Merott
Copy link
Contributor Author

Merott commented Jan 17, 2016

👍

@patrickmarabeas
Copy link
Owner

v4.1.0: uses the more semantic 'inherit' value instead. Also used by data-fittext-min.

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