<style>
div {
  counter-reset: test 0;
  font-family: Monospace;
}

div:after {
  content: counter(test);
  position: absolute;
}
</style>
<div id=change_this>PASS if 1:&nbsp</div><script>
document.body.offsetHeight;
change_this.style.counterReset = "test 1";
</script>
