<!DOCTYPE html>
<style>
#foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background-color: green;
}
body {
  margin: 0;
}
#description {
  position: absolute;
  top: 300px;
}
</style>
<div id="foreground"></div>
<div id="description">
Tests paint invalidation on end of opacity transition.<br>
Passes if there is a green square and no red.<br>
</div>
