Skip to main content
InterviewHubPRO
Section Overview
Q47

Question 47 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

94%
Astro Islands & SSR (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Scoped CSS vs Global CSS in Astro.

senior LevelSystem DesignAstro

In Simple Words: Astro styles in <style> blocks are scoped by default using generated data-attribute hashes (data-astro-cid-xxx), preventing CSS leaks.

  • To style child elements or inject global classes, use <style is:global> or the :global() selector wrapper.