Source code only handles html:
|
return selector.includes('html') |
|
? selector.replace(/html[^ ]*/, `$& body${className}`) |
|
: `body${className} ` + selector |
The following:
body main {
background-image: url(./assets/test.jpeg);
background-size: contain;
}
will generate:
body.avif body main {
background-image: url(/assets/test.0e61a19d72e86eea12e0.avif);
}
Same as in ai/webp-in-css#30
Source code only handles
html:avif-in-css/index.js
Lines 14 to 16 in 13b0238
The following:
will generate:
Same as in ai/webp-in-css#30