commit 8d237115a31b92606ff527ff326fd0b5460d9ef8
parent 12ee305d698ca21edc686709f61ab892998d65ba
Author: Jared Wein <jwein@mozilla.com>
Date: Thu, 20 Nov 2025 17:39:04 +0000
Bug 1395908 - Replace loading-burst.svg with a CSS-only approach r=desktop-theme-reviewers,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D273440
Diffstat:
3 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/browser/themes/shared/jar.inc.mn b/browser/themes/shared/jar.inc.mn
@@ -264,7 +264,6 @@
skin/classic/browser/tabbrowser/ctrlTab.css (../shared/tabbrowser/ctrlTab.css)
skin/classic/browser/tabbrowser/fullscreen-and-pointerlock.css (../shared/tabbrowser/fullscreen-and-pointerlock.css)
skin/classic/browser/tabbrowser/loading.svg (../shared/tabbrowser/loading.svg)
- skin/classic/browser/tabbrowser/loading-burst.svg (../shared/tabbrowser/loading-burst.svg)
skin/classic/browser/tabbrowser/tab-audio-playing-small.svg (../shared/tabbrowser/tab-audio-playing-small.svg)
skin/classic/browser/tabbrowser/tab-audio-muted-small.svg (../shared/tabbrowser/tab-audio-muted-small.svg)
skin/classic/browser/tabbrowser/tab-audio-blocked-small.svg (../shared/tabbrowser/tab-audio-blocked-small.svg)
diff --git a/browser/themes/shared/tabbrowser/loading-burst.svg b/browser/themes/shared/tabbrowser/loading-burst.svg
@@ -1,6 +0,0 @@
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
- - License, v. 2.0. If a copy of the MPL was not distributed with this
- - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
- <circle cx="5" cy="5" r="5" fill="context-fill"/>
-</svg>
diff --git a/browser/themes/shared/tabbrowser/tabs.css b/browser/themes/shared/tabbrowser/tabs.css
@@ -329,13 +329,9 @@
}
&[bursting]::before {
- background-image: url("chrome://browser/skin/tabbrowser/loading-burst.svg");
- background-position: center center;
- background-size: 100% auto;
- background-repeat: no-repeat;
+ background-color: var(--tab-loading-fill);
+ clip-path: circle(closest-side);
animation: tab-burst-animation 375ms cubic-bezier(0, 0, 0.58, 1);
- -moz-context-properties: fill;
- fill: var(--tab-loading-fill);
}
&[bursting][notselectedsinceload]::before {