jhildenbiddle / css-vars-ponyfill

Client-side support for CSS custom properties (aka "CSS variables") in legacy and modern browsers

Home Page:https://jhildenbiddle.github.io/css-vars-ponyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ie 9 10 Use without effect

G1King opened this issue · comments

commented

ie 9 10 Use without effect

@G1King --

I don't know what this means. Are you saying the library does not work properly in IE9 and IE10?

commented

@G1King --

I don't know what this means. Are you saying the library does not work properly in IE9 and IE10?

This library has no effect on ie9 10 when using cssvars the color display is blank

Verified that the library is working fine on IE9.

Markup:

<!doctype html>
<html lang="en">

<head>
    <style>
        :root {
            --background: red;
            --color: white;
        }

        body {
            background-color: var(--background);
            color: var(--color);
        }
    </style>

    <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
    <script>
        cssVars({
            // Options...
        });
    </script>
</head>

<body>
    <p>This is a test</p>
</body>
</html>

Result: