-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Set maxFontSize on rules. #744
Conversation
Rules can be set to any arbitrary height. This should be tested with some really tall ones. I haven't got time to test this myself this myself at the moment, but when I was working on PR #670, I ran into trouble when I tried to accommodate tall images by a method similar to this. If I recall correctly, |
For
Just a suggestion. |
Hi @ronkok, that doesn't work when sizes change, even for Or (again on master) try The fontsize-ensurer nodes are weird and suboptimal, but given the current CSS coding they appear necessary. I think this commit should be merged (I've tested with very large rules—thanks!—and they work, although they do, as you suspected, introduce large gaps) and the vlist/fontsize-ensurer issues pushed to another project. |
@kohler, Thank you for pointing out the issue with a size change inside an |
This is needed in vlists, as in KaTeX#646, to make fontsize-ensurer nodes big enough.
Maybe it would be good to add some more test(s) to illustrate, such as the |
I'd like this PR to concentrate on bug #646, and there could be another PR or issue on issues surrounding fontsize-ensurer? |
@kohler could you post a screenshot of |
Curious got the better of me. It'd be good to have this as a screenshot test as it's more obvious what the problem is in this example as compared to the existing screenshots that change. One concern I have about adding more screenshot tests is that the tests and taking longer and longer to run. I hope that the new headless modes for Chrome and Firefox will make it easier to take screenshots. |
Screenshotter test added. Re: test speed, PR #752 speeds up screenshotter tests 6x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding the additional screenshot test case.
This is needed in vlists, as in #646, to make fontsize-ensurer
nodes big enough.