mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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>
|
|
|