gecko-dev/layout/reftests/first-letter/nested-1c.html

21 lines
324 B
HTML
Raw Normal View History

<!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].firstChild.data = "This is text";
</script>
</body>
</html>