css-vars-ponyfill
css-vars-ponyfill copied to clipboard
Client-side support for CSS custom properties (aka "CSS variables") in legacy and modern browsers
```html .test { background-color: var(--x, var(--y)); } const data = {'--y': 'red'} cssVars({ watch: true, onlyLegacy: false, worker: true, // worker: false, include: '[data-include]', variables: data }) ``` outputcss ```html...
`root.css` ```css :root { --color-1: red; } .color{ color: var(--color-1) } ``` `root2.css` ```css :root { --color-1: green; } .color{ color: var(--color-1) } ``` `index.html` ```html Document .bg { background-color:...
Chrome complains about a missing map file. Im loading the package from https://cdn.jsdelivr.net/npm/css-vars-ponyfill called from wp_register_script() a Wordpress PHP method. Maybe I should just suppress it from chrome dev tools?
Hello, I noticed that this repository does not have a security policy added. This results in a lower score for the Security-Policy item in Scorecard, and when users discover security...
```html * { --x:var(--y); } body { --z:red; --y:green; color: var(--x); } xx ```
Hey! In the following block: https://github.com/jhildenbiddle/css-vars-ponyfill/blob/master/src/index.js#L304-L320 reads and writes are happening in the same loop which causes as many forced reflows, as many variables it will attach. Even an M2...