define:vars
not working with is:inline
directive in <style>
tags
#1000
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
According to the Astro documentation, the
define:vars
directive should allow passing server-side variables from the component frontmatter into the<style>
tags. The documentation does not mention any specific limitations or incompatibilities betweendefine:vars
andis:inline
for <style> tags.What's the expected result?
When using the
define:vars
directive in a<style>
tag that also has theis:inline
directive, the variables passed throughdefine:vars
do not seem to be properly injected or accessible within the styles. The styles do not apply as expected, and there is an error message but goes away once the page is reloaded.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-zbqqwf?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: