W3C home > Mailing lists > Public > www-style@w3.org > June 2007

Issue with CSS2.1 9.5.1 float rules

From: Eli Friedman <sharparrow1@yahoo.com>
Date: Sat, 16 Jun 2007 14:55:11 -0700 (PDT)
To: www-style@w3.org
Message-ID: <334628.67434.qm@web52107.mail.re2.yahoo.com>

Take the following testcase:

<!DOCTYPE html>
<div style="width: 500px; border:solid">
<div style="float: right; width: 50px; margin-right:
-80px; border: solid blue">a</div>
<div style="float:left; width: 1000px; border:solid
green">b</div>
</div>

Try this testcase in any browser (at least all the
browsers on my computer), and you will see that the
two floats end up overlapping each other.  However,
rule 3 says that "The right outer edge of a
left-floating box may not be to the right of the left
outer edge of any right-floating box that is to the
right of it."  This rule doesn't seem consistent with
what browsers currently implement in this case.

The rules might need to be adjusted to account for how
actual implementations deal with zero-width floats.


      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
Received on Saturday, 16 June 2007 21:55:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:51 GMT