calcReplacedWidthUsing has wrong containing block width. The width used has to match the block-flow directionality of the replaced element and not of the containing block.
Created attachment 223081 [details]
Dave, would you review+ or review- please?
Comment on attachment 223081 [details]
Clearing review? flag on old patch that no longer applies to trunk.