Bug 98265

Summary: [CSSRegions] Content flowed in 0px height region not displayed
Product: WebKit Reporter: Mihnea Ovidenie <mihnea>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abucur, commit-queue, donggwan.kim, stearns, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312    
Attachments:
Description Flags
Patch none

Mihnea Ovidenie
Reported 2012-10-03 07:36:48 PDT
In the following case: <html> <head> <style> #p1 { -webkit-flow-into: named-flow; background-color: green; width: 50px; height: 50px; } .region { -webkit-flow-from: named-flow; height: 0px; } </style> </head> <body> <p id="p1"></p> <div class="region"></div> </body> </html> The content overflows the region and it should be visible (region-overflow is auto and this is the last region in the chain). In this case, WebKit should display a green rectangle, but it does not display anything.
Attachments
Patch (3.02 KB, patch)
2014-03-19 23:01 PDT, Mihnea Ovidenie
no flags
Andrei Bucur
Comment 1 2012-10-09 04:55:11 PDT
There's a topic on www-style about 0 height regions: http://lists.w3.org/Archives/Public/www-style/2012Sep/0137.html The special case of the last region could contribute to that discussion.
Mihai Balan
Comment 2 2013-07-15 06:26:01 PDT
The interesting thing here is that the content does not get displayed only if the region doesn't have a border/padding. As soon as the region has border or padding, the contents are correctly rendered.
Andrei Bucur
Comment 3 2013-07-15 06:48:48 PDT
This is probably another overflow related issue. Because the content is not a child of the region, it assumes there is nothing to paint so it skips the whole thing.
Mihnea Ovidenie
Comment 4 2014-03-19 23:01:35 PDT
Andrei Bucur
Comment 5 2014-03-19 23:42:25 PDT
Comment on attachment 227256 [details] Patch r=me
WebKit Commit Bot
Comment 6 2014-03-20 00:14:43 PDT
Comment on attachment 227256 [details] Patch Clearing flags on attachment: 227256 Committed r165951: <http://trac.webkit.org/changeset/165951>
WebKit Commit Bot
Comment 7 2014-03-20 00:14:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.