18 lines
400 B
HTML
18 lines
400 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
div { background-color: red; width: 100px; height: 100px }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
You should see a 100x100 green square below. If you see any red then the test has failed.
|
|
<div></div>
|
|
<script>
|
|
var s = document.createElement("style");
|
|
var t = document.createTextNode("div { background-color: green }");
|
|
s.appendChild(t);
|
|
document.body.appendChild(s);
|
|
</script>
|
|
</body>
|
|
</html>
|