blitz icon indicating copy to clipboard operation
blitz copied to clipboard

CSS Selector Support

Open ealmloff opened this issue 1 year ago • 0 comments

Specific Demand

  • Default stylesheet: This allows us to set default styles per elements which makes implementing <b>, <s>, etc. easier and along with https://github.com/DioxusLabs/dioxus/pull/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

ealmloff avatar May 19 '23 14:05 ealmloff