Firefox 1.5 (1.5.0.7) "text-align" bug

Sun Oct 15 12:45:46 EDT 2006
brian -at- luxography -dot- ca

This paragraph is right-justified. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras semper auctor augue. Nam pede nulla, pretium vitae, semper eu, vulputate varius, lectus. Sed gravida gravida orci. Donec laoreet mauris eget nunc. Nunc commodo ullamcorper diam. Sed felis pede, tempus eu, pellentesque nec, commodo sollicitudin, tellus. Integer mollis augue et orci. Suspendisse mollis. Etiam vel risus. Aliquam nec lectus non sapien dapibus vulputate.

This paragraph should also be right-justified, but in Firefox 1.5, it is not. Unlike the paragraph above, this one is nested inside a <div> with CSS properties "position: absolute; overflow: hidden;". Both the position and overflow properties must be present and only the combination of "absolute" and "hidden" will trigger this behaviour. Any "text-align" property in the enclosing <div> is also not inherited. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras semper auctor augue. Nam pede nulla, pretium vitae, semper eu, vulputate varius, lectus. Sed gravida gravida orci. Donec laoreet mauris eget nunc. Nunc commodo ullamcorper diam. Sed felis pede, tempus eu, pellentesque nec, commodo sollicitudin, tellus. Integer mollis augue et orci. Suspendisse mollis. Etiam vel risus. Aliquam nec lectus non sapien dapibus vulputate.

This paragraph is now right-justified in Firefox 1.5. The <div> with the position and overflow properties is still there, but a "width: 90%" has been added to the <div>. Specifying any width except "auto" will work. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras semper auctor augue. Nam pede nulla, pretium vitae, semper eu, vulputate varius, lectus. Sed gravida gravida orci. Donec laoreet mauris eget nunc. Nunc commodo ullamcorper diam. Sed felis pede, tempus eu, pellentesque nec, commodo sollicitudin, tellus. Integer mollis augue et orci. Suspendisse mollis. Etiam vel risus. Aliquam nec lectus non sapien dapibus vulputate.