Skip to content

Instantly share code, notes, and snippets.

@tomer
Last active December 9, 2016 13:56
Show Gist options
  • Save tomer/4b52297bbe05857b86c1211d0f3606b6 to your computer and use it in GitHub Desktop.
Save tomer/4b52297bbe05857b86c1211d0f3606b6 to your computer and use it in GitHub Desktop.
Untitled
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<style>
.bad {direction: ltr; text-align: right; background-color: red;}
.good {direction: rtl; background-color: green;}
input {display:block; width: 80%; padding: 1em; margin: auto;}
.expected {unicode-bidi: plaintext;}
.expected2 {unicode-bidi: plaintext; text-align: right;}
</style>
</head>
<body>
<p>BAD:
<input class="bad" type="text" value="ניסיון!">
<p>GOOD:
<input class="good" type="text" value="ניסיון!">
<p>EXPECTED:
<input class="expected" type="text" value="ניסיון!">
<p>EXPECTED2:
<input class="expected2" type="text" value="ניסיון!">
</body>
</html>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
@tomer
Copy link
Author

tomer commented Dec 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment