Bug 98265 - [CSSRegions] Content flowed in 0px height region not displayed
Summary: [CSSRegions] Content flowed in 0px height region not displayed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: AdobeTracked
Depends on:
Blocks: 57312
  Show dependency treegraph
 
Reported: 2012-10-03 07:36 PDT by Mihnea Ovidenie
Modified: 2014-03-20 00:14 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.02 KB, patch)
2014-03-19 23:01 PDT, Mihnea Ovidenie
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.