Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<style /> Node Replacement Breaks Order in Development #35

Open
eerikson opened this issue Nov 15, 2018 · 1 comment
Open

<style /> Node Replacement Breaks Order in Development #35

eerikson opened this issue Nov 15, 2018 · 1 comment

Comments

@eerikson
Copy link

eerikson commented Nov 15, 2018

As I understand from this comment, <style /> nodes are stripped from the SSR version of the page and re-inserted to preserve source maps. However, the order appears to be lost during this replacement—as they are removed from DOM nonsequentially, but added again sequentially—causing a brief initial change in certain styles (especially overrides) that rely on document order.

To be clear, relying on module order as a means of writing CSS is not something I necessarily think this package should support. The problem I think is that when anybody tries to do it (a natural assumption coming from traditional CSS composition), inconsistent results are shown, often creating false positives that lead to larger problems. I'd love to see the order maintained from the server for this purpose.

As it's a server-related issue I'm not sure what a meaningful online example might look like, but I'm happy to provide any further context or information.

@Yama-Tomo
Copy link

I think this issue should be fixed.
I faced a problem when using vuetify and nuxt.js.

how to reproduction

This problem confuses us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants