This repo includes real world examples of using CSS :has - View the live examples here: https://has.syntax.fm
This site uses astro. Each example is a separate page in the pages folder.
- The Basics
- Anywhere Selector #1
- Anywhere Selector #2
- Previous Element
- Target Layouts
- Form Validation
- All Siblings
- Quantity Queries
- Empty Children
- Nested Dropdowns
- Attribute Matching
npm install
npm run dev