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

Description Mihnea Ovidenie 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.
Comment 1 Andrei Bucur 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.
Comment 2 Mihai Balan 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.
Comment 3 Andrei Bucur 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.
Comment 4 Mihnea Ovidenie 2014-03-19 23:01:35 PDT
Created attachment 227256 [details]
Patch
Comment 5 Andrei Bucur 2014-03-19 23:42:25 PDT
Comment on attachment 227256 [details]
Patch

r=me
Comment 6 WebKit Commit Bot 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>
Comment 7 WebKit Commit Bot 2014-03-20 00:14:48 PDT
All reviewed patches have been landed.  Closing bug.