<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="resources/style-with-charset.php"> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
window.onload = function() { | |
document.getElementById('result').innerHTML = | |
window.getComputedStyle(document.documentElement, null). | |
getPropertyValue("background-color"); | |
} | |
</script> | |
</head> | |
<body> | |
This test passes if we apply the stylesheet (which turns the background color | |
green.) The background color is: <span id="result"></span>. | |
</body> | |
</html> |