Lea Verou 7/9/2020

Parsel: A tiny, permissive CSS selector parser

Read Original

Parsel is a lightweight, permissive CSS selector parser created for the Web Almanac project. It parses CSS selectors into an AST, includes methods to walk the AST, and calculates specificity. The library is available as an ES module or a global script and was designed to handle realistic, valid selectors while remaining small and future-proof.

Parsel: A tiny, permissive CSS selector parser

bình luận

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet