Created attachment 154918 [details] repro case for bug In the attached repro case, the content is flowed in only the first region, yet the "regionoverset" property for the regions in the region chain are computed as "overflow", "fit" and "empty". According to the spec: http://www.w3.org/TR/css3-regions/#dom-region-regionoverset , they should be "fit", "empty" and "empty", since content is only flowed in the first region, and the second and third ones have no content flowing inside of them. "overflow" should only be valid for the last region in a region chain, if the content cannot be completely flowed inside it.
This seems to be related to the way we are handling margins in the context of forced breaks. The CSS Fragmentation spec [1] states: "When an unforced break occurs between block-level boxes, any margins adjoining the break are truncated. When a forced break occurs there, adjoining margins before the break are truncated, but margins after the break are preserved." It seems right now we are not truncating the before-break margins at all. [1] http://dev.w3.org/csswg/css3-break/#break-between
Created attachment 189306 [details] visually more intuitive test
Created attachment 190307 [details] patch
Comment on attachment 190307 [details] patch r=me, although you should probably consider adding a test of columns and/or printing, since you are affecting their behavior by pulling this code out of the region-specific break check.
Created attachment 190496 [details] Incorporated Dave Hyatt's feedback to add a test of columns.
Created attachment 190501 [details] Incorporated Dave Hyatt's feedback to add a test of columns. Also Reviewed by David Hyatt in ChangeLogs.
Created attachment 190508 [details] Incorporated Dave Hyatt's feedback to add a test of columns. Indent using spaces instead of tabs in the html files.
Comment on attachment 190508 [details] Incorporated Dave Hyatt's feedback to add a test of columns. Indent using spaces instead of tabs in the html files. Clearing flags on attachment: 190508 Committed r144178: <http://trac.webkit.org/changeset/144178>