Summary: | [CSS Regions] Region overset property is not properly computed when there is a region break | ||
---|---|---|---|
Product: | WebKit | Reporter: | Andrei Onea <andreionea3000> |
Component: | Layout and Rendering | Assignee: | Mihai Maerean <mmaerean> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | abucur, donggwan.kim, eric, esprehn+autocc, ojan.autocc, WebkitBugTracker, webkit.review.bot |
Priority: | P2 | Keywords: | AdobeTracked |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 104944, 57312 | ||
Attachments: |
Description
Andrei Onea
2012-07-27 05:56:03 PDT
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> |