When the block-ellipsis property (one of the line-clamp longhands) inserts an ellipsis, it can completely displace the contents of a line. When this happens, "the line box is considered to contain a strut, as defined in CSS 2 § 10.8.1 Leading and half-leading." (The more recent non-CR definition is in css-inline-3.)
However, this turns out to be ambiguous. A strut is associated with an inline box (including the root inline box), and its metrics depend on the inline box's styles. So what happens when the clamp point is inside multiple inline boxes?
My understanding of this so far was the strut mentioned corresponded to the root inline box, and that other inline boxes didn't affect this, but this isn't explicit in the spec text at all.
cc @frivoal
When the
block-ellipsisproperty (one of theline-clamplonghands) inserts an ellipsis, it can completely displace the contents of a line. When this happens, "the line box is considered to contain a strut, as defined in CSS 2 § 10.8.1 Leading and half-leading." (The more recent non-CR definition is in css-inline-3.)However, this turns out to be ambiguous. A strut is associated with an inline box (including the root inline box), and its metrics depend on the inline box's styles. So what happens when the clamp point is inside multiple inline boxes?
My understanding of this so far was the strut mentioned corresponded to the root inline box, and that other inline boxes didn't affect this, but this isn't explicit in the spec text at all.
cc @frivoal