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

Re: Position: relative and table cells

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 13 Jun 2013 06:15:46 -0700
Message-ID: <CAAWBYDDm9CgA0HGMY12ZrwXLjFm-YAREKuyYZ10f+W6go2L90Q@mail.gmail.com>
To: François REMY <francois.remy.dev@outlook.com>
Cc: CSS WG <www-style@w3.org>
On Thu, Jun 13, 2013 at 6:01 AM, François REMY
<francois.remy.dev@outlook.com> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:31 UTC