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

19 строки
294 B
HTML

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