Re: New values for Float property

On Monday 2009-11-30 12:23 -0600, Tab Atkins Jr. wrote:
> On Mon, Nov 30, 2009 at 11:35 AM, Alan Gresley <alan@css-class.com> wrote:
> > This is not entirely correct. right-to-left layout with floats is currently
> > implemented correctly in the latest versions of Firefox and IE8 with rtl
> > bidirection (dir="rtl"). Fails in both Safari and Opera.
> 
> Huh.  I don't see that interpretation supported in the specs, though.
> float:left says that it floats *to the left*, not to whichever side is
> the opposite of the text progression direction.  Perhaps this is a
> bug?

That testcase isn't about float:left and right swapping sides for
rtl.  It's about the overflow behavior when a float to the end-edge
(i.e., float:right in ltr, float:left in rtl) is wider than its
container.  You don't want a right float to stick out of the left
side of its container because then you can't scroll to the overflow,
since scrollbars only scroll in one direction from the default
position.

I believe I  proposed a spec change for that, but I can't find the
proposal right now.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Monday, 30 November 2009 18:58:56 UTC