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

Re: Adaptive size determination

From: Daniel Beardsmore <public@telcontar.net>
Date: Mon, 26 Feb 2007 14:01:01 +0000
Message-ID: <45E2E81D.7070702@telcontar.net>
To: www-style@w3.org

Mikko Rantalainen wrote:
>> This will trigger a visual user agent to calculate the width and height needed 
>> to show each <li>, and choose the largest size found.
> As David Woolley already told you, this is not how the CSS works. Here's
> how a CSS implementation could work (IMHO):
> .thumbs li { height: auto; width: auto; sizing-group: "thumbnails"; }
> That is, redefine "auto" for height or width to check if the element
> belongs in an "sizing-group" and if it does, compute the height or width
> to be the maximum of all elements in that group when contents of those
> elements are shrink-wrapped (and define further what "shrink-wrapping"
> means). If height or width is set to some other value but auto, then the
> sizing-group magic wouldn't apply.

Well, that sounds fine with me.
Received on Monday, 26 February 2007 14:02:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:27 UTC