cascadia 0.6.9
cascadia: ^0.6.9 copied to clipboard
A Dart CSS selector library Cascadia project, extended with modern CSS features.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.6.9 - 2026-05-04 #
Added #
- Full CSS selector parsing (Selectors Level 3 and many Level 4+)
- 78 pseudo-classes (
:first-child,:nth-child,:not,:has,:is,:where,:focus-visible,:dir,:has-slotted,:heading,:active-view-transition, etc.) - 31 pseudo-elements (
::before,::after,::first-line,::first-letter,::selection,::part,::slotted,::view-transition-*, etc.) - Combinators: descendant, child, adjacent sibling, general sibling
- Attribute selectors:
[attr],[attr=value],[attr~=value],[attr|=value],[attr^=value],[attr$=value],[attr*=value] - Namespace support (
svg|circle) - Nesting selector (
&) - Specificity calculation per CSS spec
- Serialization to CSS string
query()andqueryAll()DOM traversal utilitiescompile()for reusable matcher functionsparseWithPseudoElements()for pseudo-element support- Comprehensive test suite (48 tests)
- Full Flutter compatibility
- BSD 3-Clause license
Documentation #
- Complete README with selector reference table
- Usage examples for Dart and Flutter
- API documentation with dartdoc comments