Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: LayoutTests/fast/css/negative-orphans-crash.html

Issue 108663009: orphans and widows should be positive integer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed animations/interpolation/orphans-interpolation.html Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/negative-orphans-crash.html
diff --git a/LayoutTests/fast/css/negative-orphans-crash.html b/LayoutTests/fast/css/negative-orphans-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..e407751c2ff59f0e6fe5c3b33d9ab29af95981e2
--- /dev/null
+++ b/LayoutTests/fast/css/negative-orphans-crash.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<style>
+html {
+ orphans:-988;
+ widows: 435;
+ -webkit-columns:1in auto ;
+ width: 0;
+}
+</style>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function onLoad()
+{
+ document.body.offsetLeft;
+ document.body.innerHTML = 'PASS';
+}
+</script>
+</head>
+<body onload="onLoad()">
+<!-- This test is for crbug.com/327725. Need some long text for reproducing crash.-->
+<!-- Copied the following from W3C spec.-->
+The 'orphans' property specifies the minimum number of lines in a block container that must be left at the bottom of a page. The 'widows' property specifies the minimum number of lines in a block container that must be left at the top of a page. Examples of how they are used to control page breaks are given below.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698