Skip to content

Ensure polyfills exist after external @import at-rules #17490

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

Closed
wants to merge 2 commits into from

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where external @import url(…) at-rules were not at the top anymore due to the polyfills being pre-pended to the CSS output.

To solve this, we will inject a @layer __tw-properties; as a placeholder to at the top of the file. A body-less @layer is allowed to exist before any other rules in the file.

Later we inject all the polyfills at the bottom of the file inside the @layer __tw-polyfills; at-rule.

@RobinMalfait
Copy link
Member Author

Closing in favor of: #17506

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

Successfully merging this pull request may close these issues.

2 participants