W3C home > Mailing lists > Public > www-style@w3.org > July 2013

RE: [css-regions] Reworking getNamedFlows()

From: François REMY <francois.remy.dev@outlook.com>
Date: Wed, 31 Jul 2013 00:04:28 +0200
Message-ID: <DUB120-W34C37B7A81E865ACD0750EA5560@phx.gbl>
To: Boris Zbarsky <bzbarsky@mit.edu>, "www-style@w3.org" <www-style@w3.org>
CC: "mihnea@adobe.com" <mihnea@adobe.com>
Just another reason why not having getNamedFlow(id) is problematic:

- you may want to ask the NamedFlow for a flow that doesn't exist yet because the style hasn't been computed (or, depending on the browser, it may or may not have been computed because of different codepaths).

- if you do so, you receive null or undefined with the current method, because it returns a static list of currently active flows, but cannot guarantee you it's up-to-date orelse it would have to flush the layout in the same way as offsetHeight does.

- there's no way to tell the browser you want to get the corresponding named flow immediately in order to setup events on it, even if it's currently not in use. 		 	   		  
Received on Tuesday, 30 July 2013 22:04:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 30 July 2013 22:05:00 UTC