<html>
<head>
<style>
html {
filter: brightness(1.1) contrast(120%);
}
#rect {
background: red;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div id="rect"></div>
</body>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
function changeBackground() {
document.getElementById("rect").style.background = "green";
}
runAfterLayoutAndPaint(changeBackground, true);
</script>
</html>