Last active
December 9, 2016 13:56
-
-
Save tomer/4b52297bbe05857b86c1211d0f3606b6 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perview available at http://result.dabblet.com/gist/4b52297bbe05857b86c1211d0f3606b6/b0d5768d9247a7fd440391f078e0b5bc37033c6a