summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/text/custom-font-data-crash2.html
blob: bf1eb5109af24f147f860d2123c3815ed8fac6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<style>
@font-face { font-family: A; src: url(); }
#y { font-family: A; }
#y:first-letter { content: "A"; }
</style>
<body>
<div id="y">EFGH</div>
</body>
<script>
function finish() {
    document.body.innerHTML = "PASS";
	if (window.layoutTestController)
	    layoutTestController.notifyDone();
}

if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}

document.designMode = 'on';
document.execCommand('selectall');

// Let the font load to finish.
setTimeout("finish()", 50);
</script>
<style>
#y:before { content: "ABCD"; }
</style>
</body>
</html>