pseudo-element
::-webkit-search-cancel-button — CSS reference
Nonstandard vendor pseudo-element for the search clear button. Native control parts depend on engine and appearance; parsing a prefixed selector does not prove the internal part exists or is painted. Preserve native semantics, labels and keyboard operation. The standard host styling example is a limited alternative, not exact internal styling.
Formal Syntax & Structure
css syntaxcss
input[type=search]::-webkit-search-cancel-buttonWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>::-webkit-search-cancel-button</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{width:160px}input[type=search]::-webkit-search-cancel-button{background-color:green}</style><body><label>Search <input id="a" type="search" value="CSS"></label></body></html>