Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Side by Side Diff: LayoutTests/editing/caret/caret-pointer-direction-RTL.html

Issue 275563003: Change caret to show language direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP patch for directional caret Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
5 <title>Caret RTL Direction Test</title>
6 <style>
7 .editing {
8 border: 2px solid red;
9 padding: 12px;
10 font-size: 24px;
11 width: 400px;
12 direction: rtl;
13 unicode-bidi: -webkit-isolate;
14 }
15 </style>
16 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
17
18 <script>
19
20 function editingTest() {
21 moveSelectionForwardByLineCommand();
22 moveSelectionLeftByCharacterCommand();
23 }
24
25 </script>
26 </head>
27 <body>
28 <p>Tests display caret direction (RTL) as per Input.
29 </p>
30 <div contenteditable id="root" class="editing">
31 <span id="test">Caret in RTL Language نلا</span>
32 </div>
33
34 <script>
35 runEditingTest();
36 </script>
37
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698