pseudo-class

:interest target — CSS reference

Matches a target while an invoker indicates interest in it. 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-target { color: green; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:interest-target</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>
CSS Reference