Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

-webkit-background-clip doesn't work on elements with display: flex / inline-flex #252

Open
7iomka opened this issue Apr 9, 2018 · 1 comment

Comments

@7iomka
Copy link

7iomka commented Apr 9, 2018

Hello. Only now I noticed a very strange bug. If the element is a flex / inline-flex element, it is not displayed on the screen if styles are applied to it is like:

background: url(YOUR IMAGE) no-repeat;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;

Browser - Chrome 44.0.2403.130 (yes is old, but i tested different prefixed display flex variants, and solution how to fix that issue is not found)
I'm not asking for tips to update the browser, I'm creating a crossbrowser button component in which the content can be a font icon, custom text, and one more icon for example. It is convenient for me on a container with content to use flex.

Online demo: https://codepen.io/7iomka/full/Ovrzgv/

@arthurseredaa
Copy link

Same problem(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants