W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [css3-regions][cssom] NamedFlowCollection as a live collection?

From: Mihnea-Vlad Ovidenie <mihnea@adobe.com>
Date: Fri, 1 Jun 2012 08:34:49 +0100
To: Alex Mogilevsky <alexmog@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
CC: "Anne van Kesteren (annevk@opera.com)" <annevk@opera.com>
Message-ID: <CBEE4924.21335%mihnea@adobe.com>
Hi Alex,

I do not have a problem with the collection being dynamic, although I think that static collections can be implemented easier. I want to understand what are the guidelines/best practices that we should consider when designing an API that uses a collection. In this case particular case, the collection does not represent a list of DOM nodes, but rather a list of named flow items (which are live objects).

I would also like to hear Anne's opinion on this.


From: Alex Mogilevsky <alexmog@microsoft.com<mailto:alexmog@microsoft.com>>
Date: Thu, 31 May 2012 21:56:07 +0100
To: Mihnea Ovidenie <mihnea@adobe.com<mailto:mihnea@adobe.com>>, "www-style@w3.org<mailto:www-style@w3.org>" <www-style@w3.org<mailto:www-style@w3.org>>
Cc: "Anne van Kesteren (annevk@opera.com<mailto:annevk@opera.com>)" <annevk@opera.com<mailto:annevk@opera.com>>
Subject: RE: [css3-regions][cssom] NamedFlowCollection as a live collection?

See http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#collections .

My understanding of HTML conventions is that if collection is an attribute it must be live. Anne – would you say it is “must” or “should” ?

We can of course chose to make any collection static. getRegionFlowRanges() returns a static collection (of live ranges).

Do you have a problem with the collection being live?

From: Mihnea-Vlad Ovidenie [mailto:mihnea@adobe.com]
Sent: Thursday, May 31, 2012 2:35 AM
To: www-style@w3.org<mailto:www-style@w3.org>
Subject: [css3-regions][cssom] NamedFlowCollection as a live collection?


In the latest version of the CSSRegions spec (http://dev.w3.org/csswg/css3-regions/#the-namedflow-interface), the NamedFlowCollection is described to be a live collection of NamedFlow objects and it is exposed as an attribute on the Document interface. Are there any use cases that require this collection to be live rather than static? Is there a guideline/preferred way to make a collection live vs static when designing the CSSOM API?

Received on Friday, 1 June 2012 07:38:00 UTC

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