line-stacking-strategy: inline-line-height | block-line-height | max-height | grid-height
Initial value |
inline-line-height
|
---|---|
Applies to | block-level elements |
Inherited | yes |
This property allows to choose whether individual lines should have their height determined based on their content, or whether all lines in a paragraph should have the same height, or a compromise where their heights are determined by their content and then rounded up to a multiple of the paragraph line height.
The behaviour define by inline-line-height
is the default.
The value block-line-height
uses the line-height of the block
element and ignores the actual height of the content on those lines, so lines
will always have the same spacing regardless of whether they contain spans
with larger font size of superscripts/subscripts.
The value grid-height
is like inline-line-height
but each line gets rounded up to an integer multiple of the block line-height.
Finally, the max-height
value works like inline-line-height
,
but it ignores the
line-height
property value for inline elements.