blob: c8459482527ccd38783dc8b08884c02a02aa1568 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script>
if (window.layoutTestController)
layoutTestController.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>