From 1a67388c7f091abce3e5bf3794e1a34b7db5a8c7 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 20 Mar 2022 07:01:52 +0200 Subject: [PATCH] Use content property to set icon source --- chrome/custom_default_tab_favicons.css | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/chrome/custom_default_tab_favicons.css b/chrome/custom_default_tab_favicons.css index e50cea6..037c40f 100644 --- a/chrome/custom_default_tab_favicons.css +++ b/chrome/custom_default_tab_favicons.css @@ -5,19 +5,10 @@ See the above repository for updates as well as full license text. */ /* Default tab favicon, the globe kind of thing */ .tab-icon-image:not([src]){ - background-image: url("icon.png"); /* filename for icon to load */ + content: url("icon.png"); /* filename for icon to load */ } /* The Firefox brand icon seen on newtab page etc. */ .tab-icon-image[src="chrome://branding/content/icon32.png"]{ - background-image: url("icon.png"); /* filename for icon to load */ + content: url("icon.png"); /* filename for icon to load */ } - -/* This just set size & properties for the icon replacement */ -.tab-icon-image:not([src]), -.tab-icon-image[src="chrome://branding/content/icon32.png"]{ - background-repeat: no-repeat; - background-size: cover; - height: 0; - padding-top: 16px -} \ No newline at end of file