summaryrefslogtreecommitdiff
path: root/old/css_compat/tests/css-on-html-element.html
blob: a7a28e8e5f47cd23cf137970784d4c5e42c5bb16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CSS on HTML element</title>

<style type="text/css" media="all">

html {
 background-color: green; color: red;
}

body {
 background-color: white
}
</style>
</head>

<body>

<h3>This text should render red in a white background box on a green canvas</h3>

</body>
</html>