Back to the index.
This is a bug related to text-align: [not-left]
and direction: [not-ltr]
that occurs on some, but not all, of my Android 4 phones.
What seems to be happening is the following:
This is not a hugely important bug, but it’s still something to be aware of. And it shows that one Android 4 !== another Android 4. As if we needed more evidence of that.
Full list of phones below.
Here are the tests in an unrestricted div that takes the width of the body. That width is 35em, which calculates to 448px in all WebKit-based browsers. The top box is restricted to about 300px.
This one has text-align: left
.
This one has text-align: center
.
This one has direction: rtl
.
This div has a width of 300px. All boxes are now restricted to 300px: the width declaration of a parent counts.
This one has text-align: left
.
This one has text-align: center
.
This one has direction: rtl
.
This div has a width of 400px. Now the top box is restricted to about 300px, and the bottom two to 400px.
This one has text-align: left
.
This one has text-align: center
.
This one has direction: rtl
.
I tested this myself on my five Android 4 phones. The other ones come from my Twitter followers. If you see any pattern in these lists, please let me know.