mapLocalToContainer should be able to select the correct region when walking the ancestor path of a renderer inside a flow thread. The problem is that rectangles are shifted from their layout positions through transforms / relative positioning. Correct region information can't be collected using only geometrical values. Because of this limitation, getClientRects() will return invalid results in some cases (with content overflowing the region).
CSS Regions were removed in Bug 174978.