SkillAgentSearch skills...

Rawss

Generic CSS polyfill framework, with a CSS variables implementation

Install / Use

/learn @wix-incubator/Rawss
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Rawss

A generic framework for polyfilling CSS Aiming for a fully functional polyfill for CSS variable

What it lets you do

  • 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

API

const {Rawss, StyleProcessor, cssVariables} = require('rawss')

StyleProcessor: A generic processor interface to handle a raw CSS rule

  • 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

Rawss: generic API for responding to any style change

cssVariables: specific implementation for CSS variables polyfill

API

View on GitHub
GitHub Stars59
CategoryDevelopment
Updated3y ago
Forks5

Languages

TypeScript

Security Score

80/100

Audited on Mar 13, 2023

No findings