Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/first-line/reftest.list
<!DOCTYPE html>
<html>
<head>
<title>CSS 2.1 Test Suite: :first-line</title>
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
<meta name="flags" content="dom" />
<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>