css-analyzer
css-analyzer copied to clipboard
🫙 List all container names
Based on @mirisuzanne's talk on CSS Day 2023:
- names need conventions, so you'll probably want to audit which container names are present on your site
- container names can be defined in the
containershorthand
beta.syntax.fm actually uses containers, so can be used for testing
Related: https://github.com/csstree/csstree/issues/174
Work in progress for reading declared and comsumed container names: https://stackblitz.com/edit/stackblitz-starters-umuh7n?file=index.js,csstree-fork.js
Using Svelte's fork stuff to parse container queries.