gecko-dev/layout/reftests/first-letter/dynamic-3a.html

19 lines
324 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
div#x::first-letter { color: blue; float: left; }
</style>
</head>
<body>
<div id="x">Need at least two letters here</div>
<script>
document.body.offsetWidth;
var div = document.getElementById("x");
div.id = "y";
div.firstChild.data = "Text";
</script>
</body>
</html>