concept
Accessibility tree — CSS reference
Browsers expose an accessibility tree derived from semantics, state and rendering. A hidden subtree generally disappears from ordinary accessibility navigation; text referenced for an accessible name or description can still contribute. Opacity zero alone does not remove semantics or keyboard focus. The fixture compares two buttons; the supplementary test inspects Chromium accessibility roles and names, not actual screen-reader speech.
Formal Syntax & Structure
css syntaxcss
display: none;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>accessibility-tree</title><style>body{margin:8px;font:16px/1.5 sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{display:none}#b{opacity:0}</style><body><button id="a">Hidden action</button><button id="b">Transparent action</button><button>Visible action</button></body></html>