pseudo-class
:interest source — CSS reference
Matches an invoker while it is indicating interest in an associated element. The HTML interestfor attribute establishes the association; the selector itself does not create it. Keep explicit activation available for users who cannot hover.
Formal Syntax & Structure
css syntaxcss
:interest-source { color: green; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:interest-source</title><style>body{margin:16px;font:16px/1.5 system-ui;background:white;color:#172033} .demo{background:#dbeafe;box-sizing:border-box} button,select{font:inherit}#trigger{interest-delay:0s 0s}#trigger:interest-source{color:rgb(0,128,0)}#tip:interest-target{background:rgb(219,234,254)}</style><body><button id="trigger" interestfor="tip" popovertarget="tip" type="button">Details</button><div id="tip" popover="auto">Course description</div></body></html>