summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/js/doc-write-style.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/js/doc-write-style.html b/test/js/doc-write-style.html
new file mode 100644
index 000000000..642da0a3b
--- /dev/null
+++ b/test/js/doc-write-style.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+p { color: red; background: #fdd; }
+</style>
+</head>
+<body>
+<script>
+document.write('<style>p#foo { color: green; background: #dfd; }</style>');
+</script>
+<p id="foo">JS makes me green!</p>
+</body>
+</html>
+