CKTIS / CSS
CSS property `interactivity`
`interactivity` determines whether an element and its subtree participate in focus, text selection, find-in-page, and other user interactions.
Version: CSS modules; captured CSSWG editor index includes draft and obsolete features requiring review
Syntax
auto | inertinteractivity determines whether an element and its subtree participate in focus, text selection, find-in-page, and other user interactions.
The example first focuses a button, then applies interactivity: inert and tries again. The true-to-false result demonstrates the real interaction change.
The initial value is auto; the property is inherited. In addition, percentage values do not apply, and animation changes discretely.
The inert value does not remove nodes from the DOM or prevent script-driven changes. It suppresses user and accessibility behavior, so it is not an authorization or data-validation mechanism.
Examples
<!doctype html>
<html lang="en"><meta charset="utf-8"><title>CKTIS CSS reference example</title>
<body><div class="probe">probe</div><pre id="result"></pre><script>
document.body.innerHTML = '<button id="probe">focus target</button><pre id="result"></pre>';
const probe = document.querySelector("#probe");
probe.focus();
const before = document.activeElement === probe;
probe.blur();
probe.style.interactivity = "inert";
probe.focus();
const after = document.activeElement === probe;
document.querySelector("#result").textContent = "computed=" + getComputedStyle(probe).interactivity + "; focus=" + before + "->" + after;
</script></body></html>Result
computed=inert; focus=true->false
The example was executed locally in an isolated, network-free Chrome session; the result comes from the browser CSS API.