3 #before::before, #after::after { content: attr(my-value) }
5 <p>You should see two PASSes below.
</p>
6 <div id=
"before">SS
</div>
7 <div id=
"after">PA
</div>
9 document
.body
.offsetTop
; // force layout
11 before
.setAttribute("my-value", "PA");
12 after
.setAttribute("my-value", "SS");