Slots remove whitespace where it shouldn't when <style>
is used
#1065
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
Whitespaces are being stripped between multiple
<span>
elements when using Layout components (<slot>
), if and only if a<style>
is present.This leads to inconsistent rendering between using slots and not using slots.
Weirdly, this is something that was discussed in withastro/astro#6893, and it was mentioned that astro not removing whitespaces was a feature !
What's the expected result?
Astro should have the same rendering results whether
<slot/>
/<style>
are being used or not.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-wwx73rkk?file=src%2Fpages%2FindexWithLayout.astro
Participation
The text was updated successfully, but these errors were encountered: