Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
14 lines
424 B
Plaintext
14 lines
424 B
Plaintext
const browserColorFunctions = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
function hasBrowserOnlyColors(keyframes) {
|
|
for (let i = 0; i < keyframes.length; i++) {
|
|
if (typeof keyframes[i] === "string" &&
|
|
browserColorFunctions.test(keyframes[i])) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
export { hasBrowserOnlyColors };
|
|
//# sourceMappingURL=is-browser-color.mjs.map
|