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

Re: collapsible property

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 11 Feb 2010 19:52:58 -0800
Message-ID: <4B74D09A.6090605@terrainformatica.com>
To: Daniel Danilatos <danilatos@google.com>
CC: Patrick Garies <pgaries@fastmail.us>, www-style@w3.org, Julie Parent <jparent@chromium.org>, fantasai <fantasai.lists@inkedblade.net>, Ojan Vafai <ojan@chromium.org>
Daniel Danilatos wrote:
> 2010/2/11 Andrew Fedoniouk <news@terrainformatica.com>:
>> Daniel Danilatos wrote:
>>> Inferring orthogonal behaviour from line height or similar properties
>>> seems kinda hacky and potentially leading to all kinds of corner cases. I
>>> think it's clearer and simpler to have a property that defines exactly the
>>> desired behaviour (keep the block element open) and leave things like line
>>> height and min height to their independent meanings, without having to
>>> complicate them with extended interpretations
>>
>> Could you define the meaning of "the block element open"?
> 
> non-collapsed and able to accommodate a cursor

If you think that "non-collapsed" makes things clear then no.

For example how you would classify this:

<p><span style="display:inline-block; height:1px"></span></p>

? As collapsed or no?


> 
>> When element is "open" what height/width it should have?
> 
> The same as when the current "tricks" to keep it open are applied,
> e.g. on webkit and firefox placing a <br> inside it, on IE a "magic"
> &nbsp; (that is not in the DOM but appears in the innerHTML...)

I think that p { min-height:1em; } is a least controversial solution 
that you can get. And it works already.

And my condolences if you are in business of designing WYSIWYG editing 
with CSS.

> 
>>>> On 10 Feb 2010 21:30, "Patrick Garies" <pgaries@fastmail.us
>>>> <mailto:pgaries@fastmail.us>> wrote:
>>>>
>>>> On 2010-02-10 7:59 PM, Ojan Vafai wrote:
>>>>> Does this work? You want the height to be the line-heig...
>>>> I don't know of any way to get the line-height, but you can estimate
>>>> (e.g., |1.2em|) or explicitly specify it then match the height to it.
>>>>
>>>>
>>>>
>>>>> Also, what if you want some divs to be <1em?
>>>> Use a |class| attribute?
>>
>> --
>> Andrew Fedoniouk.
>>
>> http://terrainformatica.com
>>
> 


-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Friday, 12 February 2010 03:53:19 GMT

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