Skip to content

Commit a5dbf26

Browse files
author
Ola Holmström
committed
overflow-x test
1 parent e4a349a commit a5dbf26

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

test.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
height: 100px;
2323
width: 200px;
2424
}
25+
26+
.scroll-x {
27+
overflow-y: auto;
28+
height: 100px;
29+
width: 200px;
30+
}
2531
</style>
2632
</head>
2733

@@ -92,6 +98,22 @@
9298
</div>
9399
</div>
94100

101+
<div class="scroll-x">
102+
<div id="test5">
103+
Contrary to popular belief, Lorem Ipsum is not simply random text. It has
104+
roots in a piece of classical Latin literature from 45 BC, making it over
105+
2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney
106+
College in Virginia, looked up one of the more obscure Latin words,
107+
consectetur, from a Lorem Ipsum passage, and going through the cites of
108+
the word in classical literature, discovered the undoubtable source. Lorem
109+
Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum
110+
et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45
111+
BC. This book is a treatise on the theory of ethics, very popular during
112+
the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit
113+
amet..", comes from a line in section 1.10.32.
114+
</div>
115+
</div>
116+
95117
<script src="scrollparent.js"></script>
96118
<script>
97119
var equal = function (a, b) {
@@ -101,14 +123,15 @@
101123
var assertion = 0;
102124

103125
console.log("TAP version 13");
104-
console.log("1..4");
126+
console.log("1..5");
105127

106128
equal(Scrollparent(document.getElementById("test1")).className, "scroll");
107129

108130
equal(Scrollparent(document.getElementById("test2")), window);
109131
equal(Scrollparent(document.getElementById("test3")), window);
110132

111133
equal(Scrollparent(document.getElementById("test4")).className, "scroll-y");
134+
equal(Scrollparent(document.getElementById("test5")).className, "scroll-x");
112135
</script>
113136
</body>
114137
</html>

0 commit comments

Comments
 (0)