summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html
blob: c1b0bbc2ccc5513d401608eba172a1f86a59fd3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>