Title: [159628] trunk/LayoutTests
Revision
159628
Author
stav...@adobe.com
Date
2013-11-21 08:50:50 -0800 (Thu, 21 Nov 2013)

Log Message

Added test for the overflow of a region being painted across multiple tiles.
Added test for correct repainting of a region's overflow.

[CSS Regions] Overflow areas from regions do not redraw
https://bugs.webkit.org/show_bug.cgi?id=117329

Reviewed by Antti Koivisto.

* fast/regions/regions-overflow-tile-expected.html: Added.
* fast/regions/regions-overflow-tile.html: Added.
* fast/repaint/repaint-regions-overflow-expected.txt: Added.
* fast/repaint/repaint-regions-overflow.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (159627 => 159628)


--- trunk/LayoutTests/ChangeLog	2013-11-21 15:43:37 UTC (rev 159627)
+++ trunk/LayoutTests/ChangeLog	2013-11-21 16:50:50 UTC (rev 159628)
@@ -1,5 +1,20 @@
 2013-11-21  Radu Stavila  <stav...@adobe.com>
 
+        Added test for the overflow of a region being painted across multiple tiles.
+        Added test for correct repainting of a region's overflow.
+
+        [CSS Regions] Overflow areas from regions do not redraw
+        https://bugs.webkit.org/show_bug.cgi?id=117329
+
+        Reviewed by Antti Koivisto.
+
+        * fast/regions/regions-overflow-tile-expected.html: Added.
+        * fast/regions/regions-overflow-tile.html: Added.
+        * fast/repaint/repaint-regions-overflow-expected.txt: Added.
+        * fast/repaint/repaint-regions-overflow.html: Added.
+
+2013-11-21  Radu Stavila  <stav...@adobe.com>
+
         [CSS Regions] Float get sliced if its container has forced break and is less tall than float
         https://bugs.webkit.org/show_bug.cgi?id=124205
 

Added: trunk/LayoutTests/fast/regions/regions-overflow-tile-expected.html (0 => 159628)


--- trunk/LayoutTests/fast/regions/regions-overflow-tile-expected.html	                        (rev 0)
+++ trunk/LayoutTests/fast/regions/regions-overflow-tile-expected.html	2013-11-21 16:50:50 UTC (rev 159628)
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<style>
+			#region1, #region2 {
+			    position: absolute;
+			    width: 500px;
+			    height: 150px;
+			    border: 1px solid red;
+			    padding: 5px;
+			    background-color: lightgray;
+			}
+
+			#region2 {
+			    left: 60px;
+			    top: 250px;
+			}
+		</style>
+	</head>
+	<body style="-webkit-font-smoothing: none;">
+		<p>On success, no text should be clipped and you should see <span style="color:red">LAST LINE</span> at the bottom of the text</p>
+
+		<div id="region1">
+		  	<p>Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+		</div>
+
+		<div id="region2">
+			<p style="margin-top: 0px;">Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+		  	<p>Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+		  	<p style="color:red">LAST LINE</p>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: trunk/LayoutTests/fast/regions/regions-overflow-tile.html (0 => 159628)


--- trunk/LayoutTests/fast/regions/regions-overflow-tile.html	                        (rev 0)
+++ trunk/LayoutTests/fast/regions/regions-overflow-tile.html	2013-11-21 16:50:50 UTC (rev 159628)
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<style>
+			#content {
+				-webkit-flow-into: flow;
+			}
+
+			#region1, #region2 {
+			    position: absolute;
+			    width: 500px;
+			    height: 150px;
+			    -webkit-flow-from: flow;
+			    border: 1px solid red;
+			    padding: 5px;
+			    background-color: lightgray;
+			}
+
+			#region2 {
+			    left: 60px;
+			    top: 250px;
+			}
+		</style>
+	</head>
+	<body style="-webkit-font-smoothing: none;">
+		<p>On success, no text should be clipped and you should see <span style="color:red">LAST LINE</span> at the bottom of the text</p>
+
+		<div id="content">
+	  		<p>Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+	  		<p>Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+	  		<p>Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+	  		<p style="color:red">LAST LINE</p>
+		</div>
+
+		<div id="region1"></div>
+		<div id="region2"></div>
+	</body>
+</html>
\ No newline at end of file

Added: trunk/LayoutTests/fast/repaint/repaint-regions-overflow-expected.txt (0 => 159628)


--- trunk/LayoutTests/fast/repaint/repaint-regions-overflow-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/repaint/repaint-regions-overflow-expected.txt	2013-11-21 16:50:50 UTC (rev 159628)
@@ -0,0 +1,22 @@
+On success, no text should be clipped and you should see LAST LINE at the bottom of the text
+
+Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.
+
+LAST LINE
+
+(repaint rects
+  (rect 106 206 300 100)
+  (rect 14 72 300 210)
+  (rect 106 122 300 210)
+  (rect 14 298 300 18)
+  (rect 106 348 300 18)
+  (rect 14 56 300 260)
+  (rect 106 106 300 260)
+  (rect 60 150 312 112)
+  (rect 100 200 312 112)
+  (rect 14 56 300 260)
+  (rect 106 106 300 260)
+  (rect 14 56 300 260)
+  (rect 106 106 300 260)
+)
+

Added: trunk/LayoutTests/fast/repaint/repaint-regions-overflow.html (0 => 159628)


--- trunk/LayoutTests/fast/repaint/repaint-regions-overflow.html	                        (rev 0)
+++ trunk/LayoutTests/fast/repaint/repaint-regions-overflow.html	2013-11-21 16:50:50 UTC (rev 159628)
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<script src="" type="text/_javascript_"></script>
+		
+		<style>
+			#content {
+				-webkit-flow-into: flow;
+			}
+
+			#region1, #region2 {
+			    position: absolute;
+			    width: 300px;
+			    height: 100px;
+			    -webkit-flow-from: flow;
+			    border: 1px solid red;
+			    padding: 5px;
+			    background-color: lightgray;
+			}
+
+			#region2 {
+			    left: 60px;
+			    top: 150px;
+			}
+		</style>
+	</head>
+	<body _onload_="runRepaintTest();">
+		<p>On success, no text should be clipped and you should see <span style="color:red">LAST LINE</span> at the bottom of the text</p>
+
+		<div id="content">
+	  		<p>Above all, avoid lies, all lies, especially the lie to yourself. Keep watch on your own lie and examine it every hour, every minute. And avoid contempt, both of others and of yourself: what seems bad to you in yourself is purified by the very fact that you have noticed it in yourself. And avoid fear, though fear is simply the consequence of every lie. Never be frightened at your own faintheartedness in attaining love, and meanwhile do not even be very frightened by your own bad acts.</p>
+	  		<p style="color:red">LAST LINE</p>
+		</div>
+
+		<div id="region1"></div>
+		<div id="region2"></div>
+		
+		<script type="text/_javascript_">
+			function repaintTest() 
+			{
+				var region2 = document.getElementById("region2");
+				region2.style.left = "100px";
+				region2.style.top = "200px";
+			}
+		</script>
+	</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