question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with `unicode-bidi: isolate` use

See original GitHub issue

Steps to repro:

  1. Open http://codemirror.net/mode/python/index.html and put this code print('\n'.join(['متن متن', '123']))
  2. Add this CSS .cm-string { unicode-bidi: isolate; unicode-bidi: -webkit-isolate; } to your browser CSSs
  3. 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:open
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marijnhcommented, Feb 2, 2017

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).

0reactions
ebraminiocommented, Sep 7, 2018

I think also that can be resolved if unicode-bidi is taken into consideration.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found