Re: Position: relative and table cells

On Thu, Jun 13, 2013 at 6:01 AM, François REMY
<> wrote:
> Hi,
> I know this is not the right place for CSS questions, but I’ve a test case
> that works differently accross browsers and I’m totally unable to say what’s
> the expected result. The test case is the following one:
>     table {height:50px;}
>         tr
>             td { position: relative; }
>                 div { position: absolute; top: 0px; left: 0px; right: 0px;
> bottom: 0px; }
>                     ...
> In Opera & Chrome the DIV is sized as I would excect (50px wide, 50px tall)
> In IE, it’s positionned just fine, but has no height (50px wide, 1px tall)
> In FireFox, the position: relative of the TR is partly ignored (the div
> takes the whole viewport, but is still z-index-nested in the table cell;
> that one make no sense).
> My question is: Is that behavior expected to be undefined, or should I
> actually report bugs for this?

CSS 2.1 left the behavior of position:relative on table cells
undefined. The obvious result of that is that implementations remained


Received on Thursday, 13 June 2013 13:16:33 UTC