Astro Islands & SSR (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
How does Astro handle Scoped CSS?
senior LevelAstro
In Simple Words:
Inside .astro files, styles written in <style> tags are automatically scoped using generated attribute selectors (e.g., h1[data-astro-cid-j7pv25f6]).
- Styles never leak to parent or child components.
- Supports Sass, Less, and Tailwind CSS natively with zero extra configuration.