summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/many-spaces-before-charset.html
blob: cc5ac89ee2cd7adae5ae4a39279899d83da1b90a (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
25
26
<!DOCTYPE HTML>
<html>
<head>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.onload = function() {
    var elmt = document.getElementById("probe");  
    var color = window.getComputedStyle(elmt, null).getPropertyValue("background-color");  
    document.getElementById("results").innerHTML= color;
}
</script>
<style>
    @charset "utf-8";
.green {
  background-color: green;
}
</style>
</head>
<body>
<div id="probe" class="green">
I should have a green background.
</div>
<div id="results"></div>
</html>