Closed
Description
(...Continuation of an offline conversation with @smfr)
background-clip: text
is a really cool feature, but it works only in certain scenarios, is under-specified, not very interoperable, and has several issues, for example around accessibility and printing. A big example is #9563.
Perhaps it's time to come up with something that allows for the designs that background-clip: text
allows, but with all those issues thought out?
I can envision a few directions:
- Extending
fill
or something similar to have all the properties ofbackground
, and "fill" the text rather than have it transparent and expose the background. - Extend
mix-blend-mode
or some such to include porter-duff alpha-blending, and also to allow separate mixing to the borders vs. the content. This can be a very powerful way to alpha-blend elements of the design. - Introduce something like
background-clip: brush
andcolor: brush
, where text or anything else can use the current background as the "color". This can have very creative results but I'm not sure about the complexity.