blob: bf1eb5109af24f147f860d2123c3815ed8fac6bf [file] [log] [blame]
<!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>