Conversation
|
This isn't true though. If |
|
@chloekraw I wasn't aware this had changed. It looks like using a large number for |
|
Hmm, well, we should definitely document that because that's nonintuitive I'll take another look at what I was seeing tomorrow. |
I would argue that this behavior is exactly what you'd expect with |
🤷♂There are enough exceptions when it comes to behavior of My goal from the beginning has been to prevent users from having to guess or test what happens when
Sure, even if this is correct, it would be totally reasonable for people to assume that line breaking happens after every character. Most users aren't familiar with the algorithm for line breaking in the renderer and how a possible break point is defined.
What I meant by "nonintuitive" is that line breaking at every whitespace is nonintuitive as a feature. What is the use case for this? Even if there is a use case, Given current constraints in the style spec, I don't think there is an obvious way to represent an option that disables line breaking without creating a new property. I think the best solution would be to create a special input for But this isn't a priority, and I'm not suggesting that the feature happens, just that we clearly document behavior of the renderer :-) |
It's a small change, but I think it's worth clarifying explicitly that setting
text-max-width: 0disables text wrapping. A customer didn't realize this was an option from our docs, and I also felt there was enough ambiguity that I tested it before suggesting it.