property

webkit text fill color — CSS reference

Controls glyph interior paint separately from color. Transparent fill can hide text; maintain readable text and avoid relying on a decorative fill effect for content.

Formal Syntax & Structure

css syntaxcss
-webkit-text-fill-color: red;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-text-fill-color</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{font:40px sans-serif;-webkit-text-fill-color:red}</style><body><div id="a">Example text</div></body></html>
CSS Reference