Re: [csswg-drafts] [css-sizing-4] True Shrinkwrap [solving self-referencing wrapped text alignment]

Thinking about it some more, we could take Alan's solution: the engine would virtually track the edges of that line and apply text alignment to those edges instead of the containing block edges.

But since you have extra space within the box (assuming the longest line doesn't perfectly fit the container, which it usually doesn't), you'd want to align that space as well. The `justify-content` property effectively does this for flexbox layout, so we could re-use it here as well--values other than `normal|stretch` would mean that within the containing block we tightwrap a virtual box around the text, and then align that virtual box according to `justify-content`; meanwhile, `text-wrap` would operate within that virtual box.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1975#issuecomment-355142418 using your GitHub account

Received on Wednesday, 3 January 2018 22:12:57 UTC