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

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

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Mon, 18 Jun 2012 11:41:20 +0200
To: www-style@w3.org
Message-ID: <op.wf3ei6a6bunlto@oyvinds-desktop>
On Sun, 17 Jun 2012 20:10:12 +0200, Simon Sapin <simon.sapin@kozea.fr>  

> 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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:00 UTC