mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-14 15:37:55 +00:00
23 lines
531 B
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>
|
|
|