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

fix(playground): separate "Legacy css" prologue from included variable #12467

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

myfonj
Copy link
Contributor

@myfonj myfonj commented Jan 16, 2025

Summary

Fixes #12466

Problem

When playground CSS code involves @import, it is not first in the resulting CSS because of the prologue, so the @import is then invalid. Currently occurs at https://developer.mozilla.org/en-US/docs/Web/CSS/@font-palette-values

Solution

Literally add </style><style> before ${css}.


How did you test this change?

Frankly, I did not.

@myfonj myfonj requested a review from a team as a code owner January 16, 2025 10:08
@caugner caugner changed the title Separate "Legacy css" prologue from included variable fix(playground): separate "Legacy css" prologue from included variable Jan 16, 2025
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing

@fiji-flo fiji-flo merged commit 5773469 into mdn:main Jan 16, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playground "Legacy css" breaks @imports
3 participants