csstree

122 posts

csstree

csstree

@csstree

A tool set for working with with CSS including fast detailed parser, walker, generator and lexer based on knowledge of W3C specs and browser implementations

Katılım Eylül 2016
0 Takip Edilen216 Takipçiler
csstree
csstree@csstree·
🚀 VSCode CSSTree validator v1.2 Now powered by CSSTree 3.0, featuring enhanced warnings for unknown properties, descriptors, and at-rules. Improved error highlighting makes catching CSS issues easier than ever. marketplace.visualstudio.com/items?itemName…
English
0
1
1
244
csstree
csstree@csstree·
🚀 CSSTree validator v4.0 Now powered by the latest CSSTree 3.0, featuring enhanced support for modern CSS syntax. Check it out! github.com/csstree/valida…
English
0
1
1
246
csstree
csstree@csstree·
🚀 CSSTree 3.0 is here! Featuring support for modern at-rules, improvements to query-related at-rules, spec alignments, other enhancements and bug fixes, and more. Release notes: github.com/csstree/csstre…
English
1
2
4
388
csstree
csstree@csstree·
@projectwallace Could you clarify, please, what’s going wrong? Maybe it will be more convenient to discuss on GitHub?
English
0
0
0
31
csstree
csstree@csstree·
@projectwallace Most part of it is a syntax definition dictionary. It can be tree-shaken in theory, but it’s complicated in general. You may try to import lexer alone and use your own dictionary for it (see exports section in readme #exports" target="_blank" rel="nofollow noopener">github.com/csstree/csstre…)
English
0
0
0
36
csstree
csstree@csstree·
@projectwallace See “Syntax matching” in usage section of readme #usage" target="_blank" rel="nofollow noopener">github.com/csstree/csstre… It also should work with string values beside of AST nodes.
English
0
0
0
88
csstree
csstree@csstree·
🚀 stylelint-validator 2.0 Implemented at-rule validation, improved ignore options and Sass/Less syntax extensions, ESM support Release notes: github.com/csstree/stylel…
English
0
4
4
0
Justin Fagnani
Justin Fagnani@justinfagnani·
Anyone know of any CSS parser published to npm as standard JS modules? PostCSS and CSSTree aren't.
English
5
0
12
0
csstree
csstree@csstree·
@rtsao @devongovett CSSTree is such tool github.com/csstree/csstree It uses CSS definition syntax to match values You can try to test a value against a syntax using this playground #Property:background" target="_blank" rel="nofollow noopener">csstree.github.io/docs/syntax/#P
English
0
0
1
0
Ryan Tsao
Ryan Tsao@rtsao·
@devongovett Yeah, I’m not aware of any parsers (that aren’t part of a browser) that handle complex background shorthands correctly. I gave up and used the style crate from Servo/FF github.com/rtsao/cssparse
English
2
0
2
0
Devon Govett
Devon Govett@devongovett·
Writing a CSS parser is harder than it looks. Each property essentially has it's own mini grammar. And there are over 500 different properties... 🤯 Some are very flexible too, e.g. many shorthands accept their arguments in any order and allow any of them to be omitted.
English
10
6
148
0
csstree retweetledi
Jonathan Neal
Jonathan Neal@jon_neal·
CSSTree v2’s tokenizer is the absolute fastest, with a comfortable lead, and the semantically correct number of tokens. @rdvornov even fixed tests that inaccurately benchmarked CSSTree v1. Thank you, from the web. github.com/csstools/token…
English
0
4
16
0