-
Notifications
You must be signed in to change notification settings - Fork 715
[css-inline] Can't specify line gaps #5152
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
Comments
I support doing something along these lines. One combination that I think is particularly important is
Here are a few ideas that might address this:
I think I like option 3 (or 4) best. |
For the use case I am concerned about, another approach could be having a For this use case, I think it might be better that what I said in the previous comment, as you still have the robustness factor, but have more predicable line heights than by adding some known value to the unknown size yielded by That wouldn't let you do the equivalent of |
Another option is to allow the extraction of the metric from the font directly, along with a few others that have been requested: see #4780. Then do something like |
In many (inline) cases, |
I think what @fantasai is getting at here is being able to add 2px to whatever the normal line-height is, not 2px to the current font size. The results will almost certainly not be the same! |
#1462 has good arguments against I agree with @tabatkins that adding new |
Yeah, it's strictly impossible to do |
The syntax for line heights is
line-height: <length> | <number> | <percentage> | normal
where<percentage>
is computed against1em
, and<number>
represents a value that computes to itself and resolves against thefont-size
.It's not possible to specify line-heights by the amount of gap. We might want to be able to do that. In theory it would be
line-height: calc(1 + 2px)
, but that's not valid.The text was updated successfully, but these errors were encountered: