- From: MURAKAMI Shinyu <murakami@antenna.co.jp>
- Date: Sat, 21 Mar 2009 00:35:42 +0900
- To: www-style@w3.org
http://www.w3.org/TR/CSS21/visuren.html#comp-float
| 9.8.3 Floating a box
| ...
| <SPAN id=inner> Inner contents.</SPAN>
| <SPAN id=sibling> Sibling contents.</SPAN>
| ...
| However, if the 'clear' property on the sibling element is set to
| 'right' (i.e., the generated sibling box will not accept a position
| next to floating boxes to its right), the sibling content begins to
| flow below the float:
| #inner { float: right; width: 130px; color: blue }
| #sibling { clear: right; color: red }
In this example, the 'clear' property is specified at an inline-level
element <SPAN id=sibling>. This contradicts the definition:
| 9.5.2 Controlling flow next to floats: the 'clear' property
| 'clear'
| Applies to: block-level elements
I searched the mailing list and found this problem was already reported:
http://lists.w3.org/Archives/Public/www-style/2003Oct/0189.html
http://lists.w3.org/Archives/Public/www-style/2004Oct/0081.html
and found the CSS WG response:
http://lists.w3.org/Archives/Public/www-style/2004Feb/0233.html
| The example is indeed inaccurate, but we're going to leave
| it for now.
I think this inaccurate example confuses people learning CSS
and hope this will be corrected before the CSS2.1 final REC.
Regards,
--
Shinyu Murakami
http://www.antennahouse.com
Antenna House Formatter
http://www.antenna.co.jp/AHF/en/
Received on Friday, 20 March 2009 15:36:33 UTC