bzbarsky%mit.edu 3fa51bacc4 Make first-letter frames use the content parent of the textnode as their
content.  Add some first-letter tests, and a few assertions.  Bug 367650, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@221107 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-28 22:32:00 +00:00

22 lines
351 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
div { color: black; }
div::first-letter { color: green; }
</style>
</head>
<body>
<div>
<span>
</span>
</div>
<script>
document.body.offsetWidth;
document.getElementsByTagName("span")[0].
appendChild(document.createTextNode("This is text"));
</script>
</body>
</html>