Re: [csswg-drafts] [css-text] Non-Collapsible Space (#10821)

At the risk of repeating myself, [this article](https://blog.dwac.dev/posts/html-whitespace/#how-could-we-fix-this) explains why `white-spaces: pre-wrap` is not that good of a solution. 

One of the reasons is the inconsistency, since your solution would likely need to be applied as `* { white-space: pre-wrap; }`, for consistency, and it would still not do a great job. Again, inconsistencies still exist, even if we do that. 

That's why I think the `<!doctype htmlq>` with quote-wrapped text or the 3-quotes-in-a-row on the line before and after the text, to automatically de-indent the text, even if we have to end each line with a space, though that could also be fixed with an `::afterLine` which could be added for this, and a `::beforeLine` which could be used for other purposes, like for example for making it easier to show indented code without having to have a lot of spaces in the document, instead being able to have all the text on the same level of indentation and use a tag each time the indentation increases or decreases, said tag also telling the render-engine how much indentation to apply. And that's one of the reasons for adding `::beforeLine` and `::afterLine`.

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


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

Received on Sunday, 16 February 2025 22:21:36 UTC