-1

what is the difference between -webkit-text-fill-color: transparent; color: transparent;

I searched but couldn't find answer

I asked ChatGpt tell me this ", it makes the text color completely transparent while still allowing other styles like text shadows or decorations to be visible."

"Setting color to transparent will make the entire text, including any text shadows or decorations, transparent."

  • `color` is supported by most modern browsers and is part of the CSS Color Module Level 3 specification while `webkit` is for specific browsers based on WebKit. – Gxogac Aug 31 '23 at 04:06
  • 1
    @Gxogac this isn’t quite the case in this specific instance. See https://caniuse.com/?search=text-fill – A Haworth Aug 31 '23 at 06:37
  • @CBroe the accepted answer seems a bit incomplete in that link, and the comment on WebKit not quite right. The main differences seem to be that color sets the keyword currentcolor and that text-fill-color is not on a standards track at the mo but is currently supported by all main browsers including FF with the -webkit- prefix. – A Haworth Aug 31 '23 at 06:55

0 Answers0