Consider the following: (Live Demo)
HTML:
<div contenteditable></div>
CSS:
div {
text-align: right;
}
When you click the div
in Firefox, the cursor is located at the left (looks like text-align: right;
has no effect). But, if you start typing, text-align: right;
starts taking effect.
Why is that? Any ideas how to fix this?