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 09:14:28 -0400
Message-ID: <4A9D1E34.7070408@mit.edu>
To: Bert Bos <bert@w3.org>
CC: www-style@w3.org
Boris Zbarsky wrote:
> Makes the [1] reference a little confusing, but other than that, looks 
> good.

I was making notes to myself on implementing this stuff, and found 
another possible ambiguity.  If an element with display:run-in has an 
absolutely positioned or floated child, and gets run in, what is the 
right containing block for the child?  Is it the nearest block parent 
the run-in used to have?  Or the block the run-in ran into?


<!DOCTYPE html>
   <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>
       <div style="float: left">ccc</div>
     <div style="position: relative; border: 1px solid black">

In Opera and IE8, the run-in just doesn't run in, as I recall.  I can't 
make sense of what webkit is doing; all the text except "aaa" disappears 

It would make the most sense to me to use the block the run-in ran into 
as the containing block.

Is this already covered by the spec text in some way, or do we need to 
make it explicit?

Received on Tuesday, 1 September 2009 13:15:12 UTC

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