Title: [163985] trunk/LayoutTests
Revision
163985
Author
stav...@adobe.com
Date
2014-02-12 14:16:56 -0800 (Wed, 12 Feb 2014)

Log Message

[CSS Regions] Fix layout of floated nested region
https://bugs.webkit.org/show_bug.cgi?id=128367

Reviewed by Mihnea Ovidenie.

Added test for the correct layout of nested, floating regions.

* fast/regions/nested-floated-region-expected.html: Added.
* fast/regions/nested-floated-region.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (163984 => 163985)


--- trunk/LayoutTests/ChangeLog	2014-02-12 22:07:04 UTC (rev 163984)
+++ trunk/LayoutTests/ChangeLog	2014-02-12 22:16:56 UTC (rev 163985)
@@ -1,3 +1,15 @@
+2014-02-12  Radu Stavila  <stav...@adobe.com>
+
+        [CSS Regions] Fix layout of floated nested region
+        https://bugs.webkit.org/show_bug.cgi?id=128367
+
+        Reviewed by Mihnea Ovidenie.
+
+        Added test for the correct layout of nested, floating regions.
+
+        * fast/regions/nested-floated-region-expected.html: Added.
+        * fast/regions/nested-floated-region.html: Added.
+
 2014-02-12  Brady Eidson  <beid...@apple.com>
 
         Cleanup mac/mac-wk1/mac-wk2 TestExpectations a little bit

Added: trunk/LayoutTests/fast/regions/nested-floated-region-expected.html (0 => 163985)


--- trunk/LayoutTests/fast/regions/nested-floated-region-expected.html	                        (rev 0)
+++ trunk/LayoutTests/fast/regions/nested-floated-region-expected.html	2014-02-12 22:16:56 UTC (rev 163985)
@@ -0,0 +1,43 @@
+<html>
+    <head>
+        <style>
+            * {
+                border: solid 1px #888;
+                padding: 2px;
+                margin: 3px;
+            }
+            .no_decorations {
+                border: none;
+                padding: 0px;
+                margin: 0px;
+            }
+            .outerRegion {
+                border: 1px solid red;
+                overflow: auto;
+            }
+            .nestedRegion {
+                border: 1px solid blue;
+                display: inline-block;
+                float: right;
+                width: 210px;
+                height: 110px;
+                background-color: #eee;
+            }
+            .width600px {
+                width: 600px;
+            }
+        </style>
+    </head>
+    <body>
+        <p><b>The text inside the large <span class="no_decorations" style="color:red">region</span> should properly flow around the <span class="no_decorations" style="color:blue">floated, nested region</span>.</b></p><br/>
+        <div class="width600px outerRegion">
+            <div class="outerContent">
+            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Mollitia, cupiditate, porro, dignissimos fuga impedit corrupti suscipit tempora earum odit asperiores quia nam soluta repellat perspiciatis iste et voluptatem molestiae magni a voluptas maxime officiis iusto dolor ut dicta. 
+            <div class="nestedRegion">
+                <div class="nestedContent">This text is flowed into a nested region</div>
+            </div> 
+            Et, ad sit praesentium recusandae omnis reiciendis ipsa eveniet accusantium vero reprehenderit enim minus perferendis sapiente maxime fugiat iure soluta minima suscipit.
+        </div>
+        </div>
+    </body>
+</html>
\ No newline at end of file

Added: trunk/LayoutTests/fast/regions/nested-floated-region.html (0 => 163985)


--- trunk/LayoutTests/fast/regions/nested-floated-region.html	                        (rev 0)
+++ trunk/LayoutTests/fast/regions/nested-floated-region.html	2014-02-12 22:16:56 UTC (rev 163985)
@@ -0,0 +1,49 @@
+<html>
+    <head>
+        <style>
+            * {
+                border: solid 1px #888;
+                padding: 2px;
+                margin: 3px;
+            }
+            .no_decorations {
+                border: none;
+                padding: 0px;
+                margin: 0px;
+            }
+            .nestedContent {
+                -webkit-flow-into: nestedFlow;
+            }
+            .outerContent {
+                -webkit-flow-into: outerFlow;
+            }
+            .outerRegion {
+                -webkit-flow-from: outerFlow;
+                border: 1px solid red;
+            }
+            .nestedRegion {
+                -webkit-flow-from: nestedFlow;
+                border: 1px solid blue;
+                display: inline-block;
+                float: right;
+                width: 210px;
+                height: 110px;
+                background-color: #eee;
+            }
+            .width600px {
+                width: 600px;
+            }
+        </style>
+    </head>
+    <body>
+        <p><b>The text inside the large <span class="no_decorations" style="color:red">region</span> should properly flow around the <span class="no_decorations" style="color:blue">floated, nested region</span>.</b></p><br/>
+        <div class="outerContent">
+            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Mollitia, cupiditate, porro, dignissimos fuga impedit corrupti suscipit tempora earum odit asperiores quia nam soluta repellat perspiciatis iste et voluptatem molestiae magni a voluptas maxime officiis iusto dolor ut dicta. 
+            <div class="nestedRegion"></div> 
+            Et, ad sit praesentium recusandae omnis reiciendis ipsa eveniet accusantium vero reprehenderit enim minus perferendis sapiente maxime fugiat iure soluta minima suscipit.
+        </div>
+
+        <div class="width600px outerRegion"></div>
+        <div class="nestedContent">This text is flowed into a nested region</div>
+    </body>
+</html>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to