RE: [css-regions] Reworking getNamedFlows()

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