gecko/layout/reftests/first-line/out-of-flow-1d.html

23 lines
531 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
div { color: green }
div::first-line { color: red }
</style>
<script>
function runTest() {
var s = document.createElement("span");
s.setAttribute("style", "float: left");
s.appendChild(document.createTextNode("This should be green"));
var i = document.getElementById("i");
i.parentNode.insertBefore(s, i);
}
</script>
</head>
<body onload="runTest()">
<div><span id="i"></span></div>
</body>
</html>