W3C home > Mailing lists > Public > www-style@w3.org > February 2010

Re: collapsible property

From: Ojan Vafai <ojan@chromium.org>
Date: Wed, 10 Feb 2010 18:35:30 -0800
Message-ID: <78dc8441002101835i45c9937eo3b8445e287a14fa7@mail.gmail.com>
To: news@terrainformatica.com
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, Daniel Danilatos <danilatos@google.com>, Julie Parent <jparent@chromium.org>
On Wed, Feb 10, 2010 at 6:19 PM, Andrew Fedoniouk <news@terrainformatica.com
> wrote:

> Ojan Vafai wrote:
>
>> On Wed, Feb 10, 2010 at 5:43 PM, Andrew Fedoniouk <
>> news@terrainformatica.com <mailto:news@terrainformatica.com>> wrote:
>>
>>    Ojan Vafai wrote:
>>
>>        On Wed, Feb 10, 2010 at 5:05 PM, fantasai
>>        <fantasai.lists@inkedblade.net
>>        <mailto:fantasai.lists@inkedblade.net>
>>        <mailto:fantasai.lists@inkedblade.net
>>        <mailto:fantasai.lists@inkedblade.net>>> wrote:
>>
>>
>>        No. I'm referring to empty block nodes collapsing. For example,
>>        <p></p> will render a 0-height paragraph element.
>>
>>        Ojan
>>
>>
>>    What about this:
>>
>>    p
>>    {
>>     min-height:1em;
>>    }
>>
>>
>> Does this work? You want the height to be the line-height. As in, there
>> are cases where the line-height is not 1em. Also, what if you want some divs
>> to be <1em?
>>
>> Ojan
>>
>
> I suspect that having something like this:
>
> p:empty
> {
>  min-height:1em;
> }
>
> would be enough for WYSIWYG editing use cases. You just need box to put
> caret in and this rule will allow you to do so. If "no" then what are other
> uses cases?


Doesn't deal with many cases. "<p><span></span></p>" and "<p>   </p>".
Received on Thursday, 11 February 2010 02:36:20 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:24 GMT