Skip to content

Commit ab71c60

Browse files
eyalerWebCoder49
authored andcommitted
Make user modification of writing direction mirror between textarea and display elements.
1 parent 6b3c1b3 commit ab71c60

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

code-input.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@ code-input textarea, code-input pre, code-input pre * {
6969
text-align: inherit!important;
7070
}
7171

72+
/* Make changing the text direction propogate */
73+
code-input textarea[dir=auto] + pre {
74+
unicode-bidi: plaintext;
75+
}
76+
77+
code-input textarea[dir=ltr] + pre {
78+
direction: ltr;
79+
}
80+
81+
code-input textarea[dir=rtl] + pre {
82+
direction: rtl;
83+
}
84+
85+
7286
code-input textarea, code-input pre {
7387
/* In the same place */
7488
grid-column: 1;

0 commit comments

Comments
 (0)