Re: [CSS21] Does 'clear' apply to caption box? (corrected link)

On 15/12/2012 03:37, "Gérard Talbot" wrote:
> Le Ven 14 décembre 2012 21:29, "Gérard Talbot" a écrit :
>>
>> I believe this test
>> http://test.csswg.org/suites/css2.1/20110323/html4/clear-applies-to-015.htm
>> may be incorrect.

Hi Gérard,

The test is correct.  'clear' is scoped by the block formatting context 
in which the clearing element participates, which is established by the 
table wrapper box when the clearing element is a table caption.

Note that if you had two captions in a CSS-styled table (something which 
is invalid in HTML4 tables), you could float both of them left and set 
"clear:left" on the second one, to observe that 'clear' does apply to 
table captions... although it isn't a very useful design pattern so I 
don't imagine authors do it much!

Cheers,
Anton

Received on Monday, 7 January 2013 15:18:59 UTC