In #12041, we decided that if you set both a max-line and n height or a max-height, only the number of lines affects clamping. ((max-)height affects the height, normally, but without changing what content gets clamped).
This was primarily driven by compat needs. We also said it'd be good to have an opt-in to clamp to the earlier of the (max-)height and the specified number of lines, we just need to find syntax for it. This issue is for discussing that.