We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf4f7b commit b4148caCopy full SHA for b4148ca
src/features/accesskit/disable_gifs.js
@@ -148,8 +148,12 @@ const processGifs = function (gifElements) {
148
const sourceUrl = gifElement.currentSrc ||
149
await new Promise(resolve => gifElement.addEventListener('load', () => resolve(gifElement.currentSrc), { once: true }));
150
151
+ gifElement.style.setProperty(pausedContentVar, 'linear-gradient(transparent, transparent)');
152
const pausedUrl = await createPausedUrlIfAnimated(sourceUrl);
- if (!pausedUrl) return;
153
+ if (!pausedUrl) {
154
+ gifElement.style.removeProperty(pausedContentVar);
155
+ return;
156
+ }
157
158
gifElement.style.setProperty(pausedContentVar, `url(${pausedUrl})`);
159
}
0 commit comments