summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-ui/reference/text-overflow-021-ref.html
blob: 466755df6f4bf97fa1acc2c0047e545b0f6bfdb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
div {
  font-family: monospace;
  width: 16ch;
  white-space: pre;
  overflow: scroll;
  border: solid blue;
}
</style>

<p>This test passes if the text is in the blue box below is “PASS”.
<div id=test>                PASS</div>
<script>
var test = document.getElementById("test");
test.scrollBy(500,0);
</script>