summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/css-generated-content/004.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/004.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html b/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html
new file mode 100644
index 0000000..c1b0bbc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+<head>
+<style>
+p:before {
+ color: inherit;
+ content: 'This text should be green.';
+}
+</style>
+</head>
+<body style="color:red">
+<p id="foo"></p>
+<script>
+document.getElementById('foo').style.color='green';
+</script>
+</body>
+</html>
+