W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: [CSS21] display:run-in clarifications

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 1 Sep 2009 10:22:12 -0500
Message-ID: <dd0fbad0909010822n567c05f8h5956f71066a7d481@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Tue, Sep 1, 2009 at 10:16 AM, Boris Zbarsky<bzbarsky@mit.edu> wrote:
> Tab Atkins Jr. wrote:
>> On Tue, Sep 1, 2009 at 8:14 AM, Boris Zbarsky<bzbarsky@mit.edu> wrote:
>>> <!DOCTYPE html>
>>> <html>
>>> <body>
>>>  <div style="padding: 100px; border: 1px solid green; position:
>>> relative">
>>>   <span style="display:run-in; border: 1px solid red">
>>>     <div style="position: absolute; top: 0; left: 0">aaa</div>
>>>     bbb
>>>     <div style="float: left">ccc</div>
>>>   </span>
>>>   <div style="position: relative; border: 1px solid black">
>>>   </div>
>>>  </div>
>>> </body>
>>> </html>
>> I dunno if it's covered, but since inlines can't be containers for
>> abspos elements
> Sure they can.  They just have to be rel pos.

::headdesk::  Duh.  Sorry, just now getting my morning caffeine.

> But that's not relevant here.
>  The question is whether the divs containing "aaa" and "ccc" in the testcase
> above have the div with black border as the containing block or the div with
> green border.  I'd personally prefer black border.

Presumably both.  They're still children of the green-border box, so
they'd be contained by that if it was relpos.  But it definitely makes
sense for them to treat the black-border box as their grandparent for
purposes of containment otherwise.  I think for CSS purposes it should
be indistinguishable from simply specifying the green-border box as an
inline child of the black-border box to begin with.

Received on Tuesday, 1 September 2009 15:23:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC