property

webkit tap highlight color — CSS reference

Nonstandard color of a touch activation highlight on supporting browsers. It accepts a color with alpha. Avoid making feedback invisible unless a visible alternative is provided, and preserve keyboard focus indicators. Computed color acceptance alone does not demonstrate the platform tap overlay.

Formal Syntax & Structure

css syntaxcss
-webkit-tap-highlight-color: rgb(20 80 180 / 0.3);

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-tap-highlight-color</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{-webkit-tap-highlight-color:rgb(20 80 180 / 0.3);background:white;color:black}#a:focus-visible{outline:3px solid blue}</style><body><button id="a">Open settings</button></body></html>
CSS Reference