Skip to content

Is it possible customize whitespace style of root element? #5739

Answered by lxcid
lxcid asked this question in Q&A
Discussion options

You must be logged in to vote

Update on some research:

forcing nowrap seems to cause caret to sometimes not able to select end of line whitespace it seems. So it does seems like lexical state do depends on pre-wrap being set. Would be nice if we have some confirmation.

This seems that "whitespace" in browser are not html entities, cause it to get consume, if we ownself add a white space, it get added as  

Edit: pre-wrap is necessary mainly because of the collapsing behavior of end of line, as illustrated in the table in

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#values

both End-of-line spaces and End-of-line other space separators is the only one with both value set to Hang, which i believe is w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lxcid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant