[css-text] Non-Collapsible Space
HTML whitespace collapsing behavior makes it very difficult to directly manage individual spaces rendered in an HTML document. Whitespace collapsing has a few problems today: 1. Content management systems cannot just blindly pass text written by a non-developer through to an HTML rendering context. If a user types `Hello, World` in a CMS system, it will be rendered as `Hello, World` in HTML. The CMS can't really do anything about this to get the document to render as intended by the author without forcing all strings to use `white-space: pre;`. 1. `white-space: pre;` applies to the whole element, but the user might want two spaces in a particular place within that element. For example, maybe I'm one of those people who insists on two spaces at the end of every sentence. 1. ` ` sounds like an easy fix for "Just add a space here", but forces non-breaking and a forced-width behavior the user may not want (when line wrapped, ` ` always takes up one space of width, even when that's not needed). See the line wrapping behavior of [this demo](https://stackblitz.com/edit/vitejs-vite-datbwc?file=index.html&terminal=dev) as the viewport shrinks. 1. ` ` is the unnamed entity for a single space, which sounds like it would be a good alternative given that I really want the behavior for a simple space. However, ` ` is also subject to whitespace collapsing so it can't really solve this kind of problem. This feels especially weird since whitespace collapsing exists as
Posted by dgp1130 on Sep 2, 2024, 9:37 PM
Tags
Related issues
- To be fair, Inform7 can't succeed, generally, because there is no market for the kind of games that you create with Inform7.
- > The notion that somehow LR reliability is misunderstood by Consumer Reports, JD Power, Car & Driver, Automobile etc.
- Custom trigger IDs are not displayed in the new 2026.10 trigger selector
- I hate that too, but I think it’s more the ux than the concept of a default.
- > The biggest problem with UX developers is they know better than you AND force you into their paradigm.
- "Focus follows mouse" is what I use to keep the file manager from popping up when click-dragging files.
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
ux (Other)
To be fair, Inform7 can't succeed, generally, because there is no market for the kind of games that you create with Inform7.
New> The notion that somehow LR reliability is misunderstood by Consumer Reports, JD Power, Car & Driver, Automobile etc.
Custom trigger IDs are not displayed in the new 2026.10 trigger selector
I hate that too, but I think it’s more the ux than the concept of a default.
> The biggest problem with UX developers is they know better than you AND force you into their paradigm.
"Focus follows mouse" is what I use to keep the file manager from popping up when click-dragging files.
The biggest problem with this is if the target URL doesn't load but also doesn't quickly error out, like e.g.
Google wants to build up a private web here.
[css-text] Non-Collapsible Space
HTML whitespace collapsing behavior makes it very difficult to directly manage individual spaces rendered in an HTML document. Whitespace collapsing has a few problems today: 1. Content management systems cannot just blindly pass text written by a non-developer through to an HTML rendering context. If a user types `Hello, World` in a CMS system, it will be rendered as `Hello, World` in HTML. The CMS can't really do anything about this to get the document to render as intended by the author without forcing all strings to use `white-space: pre;`. 1. `white-space: pre;` applies to the whole element, but the user might want two spaces in a particular place within that element. For example, maybe I'm one of those people who insists on two spaces at the end of every sentence. 1. ` ` sounds like an easy fix for "Just add a space here", but forces non-breaking and a forced-width behavior the user may not want (when line wrapped, ` ` always takes up one space of width, even when that's not needed). See the line wrapping behavior of [this demo](https://stackblitz.com/edit/vitejs-vite-datbwc?file=index.html&terminal=dev) as the viewport shrinks. 1. ` ` is the unnamed entity for a single space, which sounds like it would be a good alternative given that I really want the behavior for a simple space. However, ` ` is also subject to whitespace collapsing so it can't really solve this kind of problem. This feels especially weird since whitespace collapsing exists as
Comments (0)
No comments yet. Start the discussion.