I have some styles defined for the Fontawesome icons to color the browser icons into their corresponding brand color. So Opera icon is red, IE blue, and Firefox orange.
But since Chrome has 4 different colors, and very harshly separated, I'm wondering if it's possible to mimic something close to that with CSS only?
The closest I know to get there is gradients, but obviously it doesn't get close to looking correct.
i.fa-chrome {
font-size: 3rem;
background-image: linear-gradient(to bottom right, yellow, limegreen, crimson, blue, blue);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
}
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
<div class="p-3">
<i class="fa fab fa-chrome"></i>
</div>
Could something more be done here with some background clipping and CSS hackery to look closer to the original icon's visual identity?