A generic framework for polyfilling CSS Aiming for a fully functional polyfill for CSS variable
- Write any CSS in any browser that supports mutation observers, and process it.
- Use CSS variables in any browser
Open the demo in IE: Demo
const {Rawss, StyleProcessor, cssVariables} = require('rawss')
-
match({name, value, selector}): boolean Implement to specify which style declarations apply to your processor
-
process(element, getAtomicStyle): CSSStyleDeclaration Implement to apply raw style to real, valid style getAtomicStyle can return the raw, unfiltered style of any element