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

Re: [CSS21] display:run-in clarifications

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 01 Sep 2009 11:16:42 -0400
Message-ID: <4A9D3ADA.5060300@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style@w3.org
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.  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.

Received on Tuesday, 1 September 2009 15:17:27 UTC

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