Skip to content

[css-backgrounds] Should we conceive an alternative to background-clip: text? #11574

Closed
@noamr

Description

@noamr

(...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:

  1. Extending fill or something similar to have all the properties of background, and "fill" the text rather than have it transparent and expose the background.
  2. 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.
  3. Introduce something like background-clip: brush and color: 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions