Issue with `unicode-bidi: isolate` use
See original GitHub issueSteps to repro:
- Open http://codemirror.net/mode/python/index.html and put this code
print('\n'.join(['متن متن', '123']))
- Add this CSS
.cm-string { unicode-bidi: isolate; unicode-bidi: -webkit-isolate; }
to your browser CSSs - Try to highlight first word on array by double clicking
Actual: You can select the first word. While step 2, fixes the visual issue I’ve describe here, it breaks the editing experiencing I’ve described here
Expected: That CM won’t care about unicode-bidi state, or even better, the CSS mentioned above be added to CM CSSs to help issues like this, in addition to fixing the issue with isolate bidi.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
unicode-bidi - CSS: Cascading Style Sheets - MDN Web Docs
This keyword applies the isolation behavior of the isolate keyword to the surrounding content and the override behavior of the bidi-override ...
Read more >How to use Unicode controls for bidi text - W3C
We need to find a way to say that the name and the number are separate things, ie. to isolate the inserted name...
Read more >Unicode BiDi isolation in dir not working - Browsers
This article discusses a by design behavior that Unicode BiDi isolation in CSS dir property does not work Internet Explorer and Microsoft Edge....
Read more >Should <ins> and <del> have unicode-bidi: isolate ? #5611
According to my first statement, that is beneficial, generally speaking. Nevertheless, from a purist point of view, unicode-bidi:isolate was ...
Read more >391260 - Make unicode-bidi:isolate the default for an element ...
The HTML5 spec changes the semantics of the dir attribute to use unicode-bidi:isolate instead of unicode-bidi:embed (on all elements except BDO) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’d be possible to implement something like this, but I don’t currently have the time to work on it, and as I mentioned, it’d be complicated (the bidi code is already quite scary).
I think also that can be resolved if unicode-bidi is taken into consideration.