CSS Selector Support
ealmloff opened this issue · 0 comments
ealmloff commented
Specific Demand
- Default stylesheet: This allows us to set default styles per elements which makes implementing
<b>
,<s>
, etc. easier and along with DioxusLabs/dioxus#940 unlocks widget support in Blitz - External CSS/CSS frameworks: As Blitz gains support for more styles selectors make it possible to use existing CSS frameworks that use external CSS like Tailwind within Blitz.
Implement Suggestion
Invalidation for selectors will likely not fit into the existing native-core invalidation system of parent/child/node dependancies. We will need to implement some custom system on top of native core to invalidate or cache selectors.
Resources:
- https://docs.rs/selectors/latest/selectors/
- https://github.com/vizia/vizia implements selectors