Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/interestfor/interestfor-pseudo-element-dynamic.tentative.html - WPT Dashboard Interop Dashboard
<!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>