Re: [csswg-drafts] [css-text] Indent-preserving wrapping (#8733)

I wonder if this could be a variant of the feature requested in https://github.com/w3c/csswg-drafts/issues/1853.

`text-indent: previous-line` would give you the results wanted in that issue, where `text-indent: previous-line hanging` would do what is being discussed here.

Maybe that doesn't work, because while they are both taking the previous line into account, they are doing so in a different way: #1853 feature would track the end of the previous line, while this one would track the end of a line-initial sequence of spaces. So it's different. But then again, this one does fit the `hanging` keyword in terms of which lines it applies to, and a version without `hanging` does not make sense if the thing we're tracking is line-initial spaces, and #1853 one does fit the absence of the `hanging` keyword in terms of which lines it applies to, and a version with `hanging` does not make sense if the thing we're tracking is the end of the line.

So, possibly, we could add a `previous-line` value of `text-ident` which bases the indent on the previous line, using a different measure (end of line or length of leading preserved tabs/spaces) depending on whether `handing` is specified.

If that sounds plausible, I can try to sketch the details.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 September 2023 12:39:45 UTC