CKTIS / CSS
:interest-target — target of active interest
The :interest-target pseudo-class selects a target associated with a source in which the user is currently showing interest. The association alone is insufficient.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
:interest-target { /* declarations */ }:interest-target takes no arguments. It matches the target associated with an element currently matching :interest-source, not the source itself.
The host language defines the association and how interest is expressed. HTML uses interestfor; hovering can express interest, but merely referencing a target with the attribute does not activate the pseudo-class. Clicking is not synonymous with interest.
The HTML Living Standard defines this pseudo-class and its relationship to the interestfor mechanism. The example requires local verification of both selector support and the interestfor mechanism; do not infer compatibility from the browser version alone.
Examples
<!doctype html>
<meta charset="utf-8">
<title>:interest-target demo</title>
<style>
#info { border: 2px solid gray; padding: 1rem; }
#info:interest-target { border-color: blue; }
</style>
<button interestfor="info">Details</button>
<div id="info" popover>Additional information</div>Result
With the feature supported, while Details is an active interest source, its associated target displays a blue border.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.