Re: [CSS21] Can internal table elements be relatively positioned, or establish stacking contexts?

On Sun, 17 Jun 2012 20:10:12 +0200, Simon Sapin <simon.sapin@kozea.fr>  
wrote:

> Le 16/06/2012 20:50, Anton Prowse a écrit :
>> Supposedly, the 'position' property applies to all elements.

That's not the whole story, CSS 2.1 also says that "[t]he effect of  
'position:relative' on table-row-group, table-header-group,  
table-footer-group, table-row, table-column-group, table-column,  
table-cell, and table-caption elements is undefined". But this is not  
useful for achieving interoperability, of course.

>> I can't
>> find any evidence of relative positioning applying to internal table
>> elements in Gecko, though.  (Not even to table cells; a relpos
>> table-cell doesn't seem to establish the containing block for its abspos
>> children.)
>
> "Applying" to all elements is needed so that 9.7 can turn eg. a table  
> row into an abspos block.

No, 9.7 depends on the "values" (presumably the specified values) of  
'display'/'position'/'float'. Such values exist regardless of whether or  
not a given property "applies".

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA

Received on Monday, 18 June 2012 09:41:56 UTC