Acceptable methods to wrap text?

I’m using <sp-body> or <p> in a <div> and finding that normal methods for wrapping text are limited to a single line wrap, ignored, or marked as invalid properties in the debugger. Is text wrapping not fully supported in UXP?

white-space: normal will wrap once, but the second line will overflow the right side. I cannot get a long string to wrap to more than 2 lines.

word-break seems to be ignored

overflow-wrap is not supported (warning triangle in debugger)

Couldn’t make it work either

@kerrishotts Any thoughts on this one? I’m unable to force long words (no spaces) to wrap. Thank you,

I’m getting text wrapping just fine directly inside <div> elements with default CSS.

1 Like

Thank you, Tony. After further testing, I’m seeing the wrap work with certain string lengths and not with others. If I have a super long string, it works fine. But I’m seeing a lot of stuff go off the end with shorter strings. May be a bug, I’ll have to do some more testing.