Skip to content

Commit

Permalink
enable webp processing
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Feb 16, 2025
1 parent a09a35e commit c4ccd24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/accesskit/disable_gifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ const processRows = function (rowsElements) {

export const main = async function () {
const gifImage = `
:is(figure, ${keyToCss('tagImage', 'takeoverBanner')}) img[srcset*=".gif"]:not(${keyToCss('poster')})
:is(figure, ${keyToCss('tagImage', 'takeoverBanner')}) img:is([srcset*=".gif"], [src*=".gif"], [srcset*=".webp"], [src*=".webp"]):not(${keyToCss('poster')})
`;
pageModifications.register(gifImage, processGifs);

const gifBackgroundImage = `
${keyToCss('communityHeaderImage', 'bannerImage')}[style*=".gif"]
${keyToCss('communityHeaderImage', 'bannerImage')}:is([style*=".gif"], [style*=".webp"])
`;
pageModifications.register(gifBackgroundImage, processBackgroundGifs);

Expand Down

0 comments on commit c4ccd24

Please sign in to comment.