Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="match" href="interestfor-pseudo-element-dynamic-ref.html">
<p>You should see a button with the text PASS below.</p>
<button id="interest" interestfor="target">PASS</button>
<div id="target"></div>
<style>
::interest-hint { content: "FAIL"; }
</style>
<script>
interest.offsetTop;
interest.removeAttribute("interestfor");
</script>