-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Scoped styles behave differently in Astro 6 #15907
Copy link
Copy link
Closed
withastro/compiler
#1153Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Scoped styles behave differently in Astro 6, which is causing our codebase to break. This seems like a regression, unless it was an intentional breaking change. Seems related to #14032.
When I have an Astro component like this:
and Link.astro is:
What's the expected result?
Astro 5 produced this output:
Astro 6 produces this output:
Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/jmbockhorst/astro-scoping-bug
Participation